Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How to route in a callback function? - SolidJS
S
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>
<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
onClick
callback
? That isn
't possible
?
SolidJS
Join
Solid is a declarative reactive Javascript library for creating user interfaces.
12,274
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
how to handle POST in a route?
S
SolidJS / support
4y ago
route.outlet is not a function
S
SolidJS / support
3y ago
Pass a named function callback to an old JS library
S
SolidJS / support
16mo ago
how to redirect in a "use server" function?
S
SolidJS / support
2y ago