2018-04-07 16:26:28 +02:00
|
|
|
import React from 'react';
|
|
|
|
|
import ReactDOM from 'react-dom';
|
2018-04-11 13:11:49 +02:00
|
|
|
import { BrowserRouter as Router, Route } from 'react-router-dom'
|
2018-04-07 16:26:28 +02:00
|
|
|
import './index.css';
|
2018-04-10 10:48:15 +02:00
|
|
|
import App from './components/App';
|
2018-04-07 16:26:28 +02:00
|
|
|
import registerServiceWorker from './registerServiceWorker';
|
2018-04-11 13:11:49 +02:00
|
|
|
import Inbox from './components/App/Inbox/index';
|
|
|
|
|
import MyTask from './components/App/Mytask/index';
|
|
|
|
|
import Dashboard from './components/App/Dashboard/index';
|
|
|
|
|
import Dummy from './components/App/Dummy/index';
|
2018-04-07 16:26:28 +02:00
|
|
|
|
2018-04-11 13:11:49 +02:00
|
|
|
ReactDOM.render(
|
|
|
|
|
<Router>
|
|
|
|
|
<div>
|
|
|
|
|
<Route exact path='/' component={App} />
|
|
|
|
|
<Route exact path="/mytask" component={MyTask} />
|
|
|
|
|
<Route exact path="/inbox" component={Inbox} />
|
|
|
|
|
<Route exact path="/dashboard" component={Dashboard} />
|
|
|
|
|
</div>
|
|
|
|
|
</Router>
|
|
|
|
|
,
|
|
|
|
|
document.getElementById('root'));
|
2018-04-07 16:26:28 +02:00
|
|
|
registerServiceWorker();
|