Skip to content

Instantly share code, notes, and snippets.

@velopert
Created January 14, 2017 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velopert/a616cdb3d841fb0bc25ebd52454ca2f6 to your computer and use it in GitHub Desktop.
Save velopert/a616cdb3d841fb0bc25ebd52454ca2f6 to your computer and use it in GitHub Desktop.
ReactDOM.render(
<Router history={browserHistory}>
<Route path="/" component={App}>
<IndexRoute component={Home}/>
<Route path="about" component={About}/>
<Route path="post" component={Posts}/>
<Route path="post/:id" component={Post}/>
</Route>
</Router>,
document.getElementById('root')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment