xreact
xreact copied to clipboard
Hook up a router?
How would one hook up a router to a react-most setup? Would we use react-router or another router? How do we integrate routing events into the intent$ stream?
I didn't try but probably react-router should work naturally since it's just a HoC, data should be ok just pass to component via props, not intent$
<Router>
<Most>
<Route path="/a" component={Child}/>
</Most>
</Router>
another alternative is https://github.com/router5/react-router5 (i would preferred try this if i need a router)
🤔 probably i should write a simple react-router example while i have time