Last active
November 19, 2015 02:18
-
-
Save wavebeem/8769a8a142ed61e6e988 to your computer and use it in GitHub Desktop.
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
| render([ | |
| [{path: "/", component: App}, | |
| [{path: "about", component: About}], | |
| [{path: "users", component: Users}, | |
| [{path: "/user/:userId", component: User}] | |
| ], | |
| [{path: "*", component: NoMatch}] | |
| ] | |
| ], document.body); |
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
| render([ | |
| [Route, {path: "/", component: App}, | |
| [Route, {path: "about", component: About}], | |
| [Route, {path: "users", component: Users}, | |
| [Route, {path: "/user/:userId", component: User}] | |
| ], | |
| [Route, {path: "*", component: NoMatch}] | |
| ] | |
| ], document.body); |
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
| render(( | |
| <Router> | |
| <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> | |
| ), document.body); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment