hi, how would I achieve this piece of router (@reach/router) in rum?:
<Router>
<Home path="/" />
<Dash path="dashboard" />
</Router>
I tried and this doesn't work, Children of <Router> must have a path
or default prop
. It couldnt find the path props on todo-component
(def reach-router (core/adapt-class Router))
(rum/defc app []
[:main
(reach-router
[(app/todo-component {:path "/"})])])
(adapt-class is taken from here https://github.com/tonsky/rum/issues/20#issuecomment-282471141)