forked from yuristrelets/react-toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
20 lines (17 loc) · 693 Bytes
/
index.js
File metadata and controls
20 lines (17 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, useRouterHistory } from 'react-router';
import createHashHistory from 'history/lib/createHashHistory';
import 'react-toolbox/commons';
import Home from './components/layout/home';
import Install from './components/layout/install';
import Main from './components/layout/main';
ReactDOM.render((
<Router history={useRouterHistory(createHashHistory)({ queryKey: false })}>
<Route path="/" component={Home} />
<Route path="/install" component={Install} />
<Route path="/components" component={Main}>
<Route path=":component" />
</Route>
</Router>
), document.getElementById('app'));