Created
August 7, 2019 19:57
-
-
Save anderjs/0975a46bcc093b32284c2512717a10da to your computer and use it in GitHub Desktop.
Router config
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 React from 'react' | |
import { BrowseRotuer as Router, Switch, Route } from 'react-router-dom' | |
import Dashborad from './views/Dashboard.js' | |
function App() { | |
return ( | |
<Router> | |
<Switch> | |
<Route exact path='/dashboard' component={Dashboard} /> | |
</Switch> | |
</Router> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment