Skip to content

Instantly share code, notes, and snippets.

@peatiscoding
Created October 10, 2018 01:41
Show Gist options
  • Save peatiscoding/02a8ff8038d8ac34bbc5534e9622c9b4 to your computer and use it in GitHub Desktop.
Save peatiscoding/02a8ff8038d8ac34bbc5534e9622c9b4 to your computer and use it in GitHub Desktop.
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