forked from ibierno/finances_new
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
23 lines (21 loc) · 702 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import React from'react';
import {render} from 'react-dom';
import {BrowserRouter, Switch, Route} from 'react-router-dom';
import './index.css';
import Start from './startpage';
import History from './historypage';
import Settings from './settingspage';
import MyResponsiveDrawer from './menu';
import test from './testpage'
render((
<BrowserRouter>
<Switch>
<Route exact path='/' component={MyResponsiveDrawer}/>
<Route path='/historypage' component={History}/>
<Route path='/settingspage' component={Settings}/>
<Route path='/startpage' component={Start}/>
<Route path='/testpage' component={test}/>
</Switch>
</BrowserRouter>),
document.getElementById('root')
);