tkirishima
SSR and routes in Solid.JS
On the Solid.JS website, it is stated that it supports server-side rendering (SSR). However, I am unable to find a straightforward method for SSR with routing. For instance, if I consider the following example:
(https://docs.solidjs.com/references/concepts/ssr/simple-client-fetching-ssr)
Although this code works, it does not explain how to incorporate routing. Is there a way to make it work based on the request URL received by Express without requiring modifications to the App component?
10 replies
Routes and FileRoutes
Hello!
I'm new to Solid and I had some questions about Routes.
I followed what was written in solidStart, but I still have some questions about FileRoutes.
For example, is it possible to create a custom Layer for some pages and still using FileRoutes ?
For example, with a tree like that
For example, I would like for index.tsx and test.tsx to both have a
<Header/>
that would be defined in ~/components
I know that this is possible with Routes, but I was wondering if it was with FileRoutes8 replies