Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 10-router-handlers.mdx - Switcher Created + Small Syntax Improvement #51003

Merged
merged 2 commits into from
Jun 9, 2023

Commits on Jun 9, 2023

  1. Update 10-router-handlers.mdx

    When I first saw this section, I got confused due to the wrongly named file ending and the multiline TypeScript syntax.
    
    What I did was added a TS and JS switcher. I also changed the TypeScript syntax for { params } : { params: { slug: string }}
    
    This is how I saw it written in the example in 05-dynamic-routes of the documentation and I think it is much easier to read and less confusing.
    thepatrick00 committed Jun 9, 2023
    Configuration menu
    Copy the full SHA
    fd749b5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1c739ee View commit details
    Browse the repository at this point in the history