Last active
February 29, 2016 13:51
-
-
Save andrewjmead/7c21ebeaaae4fa3aae24 to your computer and use it in GitHub Desktop.
Nested Route Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ReactDOM.render( | |
| <Router history={hashHistory}> | |
| <Route path="/docs" component={Main}> | |
| <Route path="/page-one" component={PageOne}/> | |
| <Route path="/page-two" component={PageTwo}/> | |
| <IndexRoute component={DocHome}/> | |
| </Route> | |
| </Router>, | |
| document.getElementById('app') | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment