S
SolidJS3mo ago
Gurkan

how can I colocate components in the routes directory

I have an admin dashboard page, and I have a specific component that’s only useful for those pages. Is it possible to put those components next to the route, or is there a better way? I’m using solid start please ping me when you reply thanks
2 Replies
Brendonovich
Brendonovich3mo ago
A file is only turned into a route if it has a default export, so long as the colocated file uses named exports only then you can rely on it
Gurkan
GurkanOP3mo ago
alright thanks

Did you find this page helpful?