valerio.tsx
valerio.tsx
SSolidJS
Created by valerio.tsx on 6/2/2024 in #support
Renaming Index not working?
Hi! I just created a project with SolidStart starter and chose the tailwind with typescript template. I created a socials folder with a socials.tsx component (should render on /socials according to the docs (https://docs.solidjs.com/solid-start/building-your-application/routing#renaming-index) but it only renders under /socials/socials. The function that I'm exporting from socials.tsx looks like this:
export default function Index() {
return <h1>test</h1>;
}
export default function Index() {
return <h1>test</h1>;
}
I also tried renaming the function to Socials but didn't work, what am I missing? 🤔
12 replies