Created
December 28, 2019 20:49
-
-
Save wilsonjuniordeveloper/e4bba539546c0f40a9a975a7e344aa64 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