Created
December 28, 2019 20:44
-
-
Save wilsonjuniordeveloper/58a7614b852836bc68c13a039c2a9212 to your computer and use it in GitHub Desktop.
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 ReactDOM from 'react-dom'; | |
import App from './App'; | |
import Login from './container/Login' | |
import Cadastre from './container/Cadastre' | |
import Started from './screen/Started' | |
import State from './container/State' | |
import './css/doc.css' | |
import { | |
BrowserRouter as Router, | |
Switch, | |
Route, | |
Link | |
} from "react-router-dom"; | |
ReactDOM.render( | |
<Router> | |
<Switch> | |
<Route exact path="/"> | |
<State /> | |
</Route> | |
<Route path="/user"> | |
<App /> | |
</Route> | |
<Route path="/login"> | |
<Login /> | |
</Route> | |
<Route path="/cadastre"> | |
<Cadastre /> | |
</Route> | |
<Route path="/start"> | |
<Started /> | |
</Route> | |
</Switch> | |
</Router>, | |
document.getElementById('root') | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment