Skip to content

Instantly share code, notes, and snippets.

@czbaker
Created January 15, 2016 14:53
Show Gist options
  • Select an option

  • Save czbaker/cdd86de1ccbdc1c6449f to your computer and use it in GitHub Desktop.

Select an option

Save czbaker/cdd86de1ccbdc1c6449f to your computer and use it in GitHub Desktop.
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