noob question regarding solid-router
Hey guys, I'm running through this tutorial on Solid-JS as I am new to web dev, I got to the video on the solid-router and noted it broke so I ran through the documentation and saw there were changes made recently. I tried figuring it out myself but my page still doesn't render the Home component.
8 Replies
I'm not sure if it'll fix your problem, but all the stuff outside of the
Router
should be put in a separate component and provided via the router's root
propAnd make sure
App
is rendering props.children
ahhh
do i necessarily need to pass props to render something ? here's the top of App.jsx
Yeah the
root
component must receive props and render children
- see the router docs https://github.com/solidjs/solid-router?tab=readme-ov-file#configure-your-routesGitHub
GitHub - solidjs/solid-router: A universal router for Solid inspire...
A universal router for Solid inspired by Ember and React Router - GitHub - solidjs/solid-router: A universal router for Solid inspired by Ember and React Router
thank you bro, my website has been fixed 🙏 , for some reason it didn't click despite reading it multiple times