-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
23 lines (21 loc) · 708 Bytes
/
index.js
File metadata and controls
23 lines (21 loc) · 708 Bytes
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 ReactDOM from 'react-dom';
import './_assets/fonts/fonts.css';
import './index.css';
import Slider from './Slider/Slider';
import Admin from './Admin/Admin';
import registerServiceWorker from './registerServiceWorker';
import 'bootstrap-4-grid/css/grid.css';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import Widget from './Widget/Widget';
const routing = (
<Router>
<Switch>
<Route path="/admin" exact component={Admin} />
<Route path="/widget" exact component={Widget} />
<Route component={Slider} />
</Switch>
</Router>
);
ReactDOM.render(routing, document.getElementById('root'));
registerServiceWorker();