How to route in a callback function?
The SolidJS Router docs explain how to add a link that wraps some component (needing routing) with an <a> tag, via the
<A>
component:
https://github.com/solidjs/solid-router#create-links-to-your-routes
However, how do I route in a callback function? I.e. how do I render some routed component from the onClick
callback? That isn't possible?4 Replies
You can use
useNavigate()
Thank you!!<3
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View