UNPKG

@ftrack/react-toolbox

Version:

A set of React components implementing Google's Material Design specification with the power of CSS Modules.

18 lines (16 loc) 659 B
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'));