forked from react-toolbox/react-toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
18 lines (17 loc) · 695 Bytes
/
index.js
File metadata and controls
18 lines (17 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import 'react-toolbox/commons.css';
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, useRouterHistory } from 'react-router';
import createHashHistory from 'history/lib/createHashHistory';
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'));