Skip to content

Instantly share code, notes, and snippets.

@kamilziajka
Created October 24, 2017 07:39
Show Gist options
  • Save kamilziajka/51edc25b4fed80442d1532a71fe8d186 to your computer and use it in GitHub Desktop.
Save kamilziajka/51edc25b4fed80442d1532a71fe8d186 to your computer and use it in GitHub Desktop.
react router
import {HashRouter as Router, Route} from 'react-router-dom';
<Router>
<div>
<Route exact path={'/'} component={Home}/>
<Route exact path={'/foo'} component={Foo}/>
<Route exact path={'/bar'} component={bar}/>
</div>
</Router>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment