Skip to content

Instantly share code, notes, and snippets.

@peatiscoding
Created October 10, 2018 01:41
Show Gist options
  • Select an option

  • Save peatiscoding/02a8ff8038d8ac34bbc5534e9622c9b4 to your computer and use it in GitHub Desktop.

Select an option

Save peatiscoding/02a8ff8038d8ac34bbc5534e9622c9b4 to your computer and use it in GitHub Desktop.

Revisions

  1. peatiscoding created this gist Oct 10, 2018.
    30 changes: 30 additions & 0 deletions App.tsx
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    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;