Created
October 10, 2018 01:41
-
-
Save peatiscoding/02a8ff8038d8ac34bbc5534e9622c9b4 to your computer and use it in GitHub Desktop.
This file contains 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 * as React from 'react' | |
import { BrowserRouter as Router, Route } from 'react-router-dom' | |
import { Provider } from 'react-redux' | |
import store from './store' | |
import Dashboard from './pages/Dashboard' | |
import Login from './pages/Login' | |
// Style | |
import './App.css'; | |
class App extends React.Component { | |
render() { | |
return ( | |
<Provider store={store}> | |
<Router> | |
<div className="App"> | |
<div id="route-container"> | |
<Route path="/" exact component={Dashboard} /> | |
<Route path="/login" exact component={Login} /> | |
</div> | |
</div> | |
</Router> | |
</Provider> | |
); | |
} | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment