valerio.tsx
valerio.tsx
SSolidJS
Created by valerio.tsx on 6/2/2024 in #support
Renaming Index not working?
Yess, that works, thanks! You think I should open an issue on the solid-docs repo?
12 replies
SSolidJS
Created by valerio.tsx on 6/2/2024 in #support
Renaming Index not working?
yes, that works. But according to the docs:
By default, the component that is rendered for a route comes from the default export of the index.tsx file in each folder. However, this can make it difficult to find the correct index.tsx file when searching, since there will be multiple files with that name. To avoid this, you can rename the index.tsx file to the name of the folder it is in and it will be rendered as the default export for that route
12 replies