Skip to content

Having hard time understanding how to use nanojsx Router #46

Discussion options

You must be logged in to vote

It is possible. But keep in mind the whole point of Nano JSX is to reduce JavaScript. If your app hydrates the whole app, there is not much reduction in size.

I personally never use the router and also had trouble setting it up the way I want.
(I guess I will have to change the router logic in the future. I don't like the react-like router.)

But, I just made a simple example for you using a simple custom routing method:
https://github.com/nanojsx/example1

Hope it helps :)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lafusew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants