Skip to content

Instantly share code, notes, and snippets.

@velopert
Last active January 14, 2017 14:03
Show Gist options
  • Save velopert/8b760c2a0a81aac1b07492e48a31457a to your computer and use it in GitHub Desktop.
Save velopert/8b760c2a0a81aac1b07492e48a31457a to your computer and use it in GitHub Desktop.
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import App from './App';
import Home from './containers/Home';
import About from './containers/About';
import Posts from './containers/Posts';
import './index.css';
ReactDOM.render(
<Router history={browserHistory}>
<Route path="/" component={App}>
<IndexRoute component={Home}/>
<Route path="about" component={About}/>
<Route path="post" component={Posts}/>
</Route>
</Router>,
document.getElementById('root')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment