How to label each page with a title?
This may seem a trivial thing – and maybe it is – but please bear with me (as I have very little experience with Solid yet).
I have a Solid app. It has a
Not surprisingly, the
Now, here is a question: what is a canonical/best/sensible way for any of the components in
I have a Solid app. It has a
routes.tsx file which defines routes – a nested array of RouteDefinition. Then I have this:Not surprisingly, the
Layout component has a Header component, which renders a title.Now, here is a question: what is a canonical/best/sensible way for any of the components in
routes to tell Header in Layout what the title of the current "screen" is? Related question: I'd also like the <title> tag to be dynamically set depending on the current "screen" (possibly to the same value as the one in the header). How to achieve that?