Last active
August 13, 2016 09:30
-
-
Save vesic/e2c932c4a0224b0a559c748996151b0b to your computer and use it in GitHub Desktop.
react router setup
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 { Router, Route, hashHistory } from 'react-router'; | |
ReactDOM.render(( | |
<Router history={hashHistory}> | |
<Route path="/" component={App}> | |
</Route> | |
</Router> | |
), document.getElementById('root')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment