Update documentation about default route redirection
sunesimonsen opened this issue · comments
Sune Simonsen commented
The current example show default route redirection without useEffect
- that doesn't work:
https://github.com/sunesimonsen/nano-router/tree/master/packages/react#switch-on-the-route-name
It should be done this way:
https://github.com/sunesimonsen/nano-router/blob/master/examples/react/src/components/RootView.js