S
SolidJS16mo ago
Mathieu

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