Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hook up a router? #26

Open
willmruzek opened this issue Mar 31, 2017 · 1 comment
Open

Hook up a router? #26

willmruzek opened this issue Mar 31, 2017 · 1 comment

Comments

@willmruzek
Copy link

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?

@jcouyang
Copy link
Collaborator

jcouyang commented Apr 1, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants