Skip to content

Commit

Permalink
note: default export for route
Browse files Browse the repository at this point in the history
  • Loading branch information
cha0s committed Feb 19, 2024
1 parent 7a5af74 commit b0343af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/react.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ exports are mixed in to the Route. Route modules should probably at least
`export function Component() { ... }`, but may export any of
[the Route props](https://reactrouter.com/en/main/route/route).

You may export a `default` export which will be used as the component. An explicit named
`Component` export will take precedence.

### Selecting the root

There can only be one root of your router tree. Supposing you implemented
Expand Down

0 comments on commit b0343af

Please sign in to comment.