Skip to content

Commit d6e4b65

Browse files
klequisatilafassina
authored andcommitted
Default export is required
In my testing having a non-default export: ```jsx export function ComponentName() {} ``` Results in the route not being found. (goes to the catch-all) Therefore, I'm suggesting replacing "should" with "must".
1 parent 99705e5 commit d6e4b65

File tree

1 file changed

+1
-1
lines changed
  • src/routes/solid-start/building-your-application

1 file changed

+1
-1
lines changed

src/routes/solid-start/building-your-application/routing.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ When a file is named `index`, it will be rendered when there are no additional U
6363
- `example.com``/routes/index.tsx`
6464
- `example.com/socials``/routes/socials/index.tsx`
6565

66-
For a route to be rendered as a page, it should default export a component.
66+
For a route to be rendered as a page, it must default export a component.
6767
This component represents the content that will be rendered when users visit the page:
6868

6969
```tsx filename="routes/index.tsx"

0 commit comments

Comments
 (0)