Created
October 24, 2017 07:39
-
-
Save kamilziajka/51edc25b4fed80442d1532a71fe8d186 to your computer and use it in GitHub Desktop.
react router
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 {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