Skip to content

Instantly share code, notes, and snippets.

@Louiefigz
Created May 11, 2017 13:27
Show Gist options
  • Save Louiefigz/da9203e2d2398e66891bea3e9160fe9a to your computer and use it in GitHub Desktop.
Save Louiefigz/da9203e2d2398e66891bea3e9160fe9a to your computer and use it in GitHub Desktop.
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
import Home from './components/home';
// Importing React Router libraries
import { Router, Route, browserHistory, IndexRoute } from 'react-router';
ReactDOM.render(
<Router history={browserHistory}>
<Route path="/" component={App}>
<IndexRoute component={Home}/>
</Route>
</Router>,
document.getElementById('root')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment