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
Je Suis Un Ami
You can use useNavigate()
Mathieu
MathieuOP2y ago
Thank you!!<3
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server