SolidJSS
SolidJSโ€ข3y agoโ€ข
4 replies
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?
Was this page helpful?