Navigate
Edit this pageSolid Router provides a Navigate
component that works similarly to <A>
, but it will immediately navigate to the provided path as soon as the component is rendered.
It also uses the href
prop, but with the additional option of passing a function to href
that returns a path to navigate to: