xreact icon indicating copy to clipboard operation
xreact copied to clipboard

Hook up a router?

Open willmruzek opened this issue 8 years ago • 1 comments

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?

willmruzek avatar Mar 31 '17 13:03 willmruzek

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

jcouyang avatar Apr 01 '17 02:04 jcouyang