Created
January 15, 2016 14:53
-
-
Save czbaker/cdd86de1ccbdc1c6449f 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
| import React from 'react'; | |
| import { render } from 'react-dom'; | |
| import { Router, Route, IndexRoute, Link } from 'react-router' | |
| // Page Components, etc. | |
| import Navigation from './navigation.jsx'; | |
| import Home from './home.jsx'; | |
| const App = React.createClass({ | |
| render() { | |
| return ( | |
| <div> | |
| <AppBar title="Toshokan - A YuGiOh Card API" /> | |
| <Navigation /> | |
| <this.props.children title={this.props.title} /> | |
| </div> | |
| ); | |
| } | |
| }); | |
| render(( | |
| <Router> | |
| <Route path="/" component={App}> | |
| <IndexRoute component={Home} /> | |
| </Route> | |
| </Router> | |
| ), document.body); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment