Stuck on a simple router setup
I'm learning how to use Solid Router by stepping through the docs in order. My goal is to build something like this:
In the docs, the Getting started > Component routing section says to make the root of your app
However, just below that in Concepts > Navigation the code snippets have an
I tried this:
And am getting this error:
Can anyone help me understand how to achieve this? Thank you very much in advance!
In the docs, the Getting started > Component routing section says to make the root of your app
<Router> and then nest <Route>s inside it.However, just below that in Concepts > Navigation the code snippets have an
<App> for a root and don't mention <Router>. So I don't understand where the contents of my app should be in relation to the <Router>, especially layout stuff that is external to the route being loaded.I tried this:
And am getting this error:
Can anyone help me understand how to achieve this? Thank you very much in advance!
