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

react-router and react-mounter #16

Open
sarkistlt opened this issue May 14, 2016 · 1 comment
Open

react-router and react-mounter #16

sarkistlt opened this issue May 14, 2016 · 1 comment

Comments

@sarkistlt
Copy link

Basically, can I use it together?

@khayong
Copy link

khayong commented Jul 15, 2016

I found that we can just simply mount it like below code

mount(() => (
    <Router history={browserHistory}>
    <Route path="/" component={App}>
      <Route path="about" component={About}/>
      <Route path="users" component={Users}>
        <Route path="/user/:userId" component={User}/>
      </Route>
      <Route path="*" component={NoMatch}/>
    </Route>
  </Router>
  ))

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