UNPKG

react-timeseries-table

Version:
35 lines (29 loc) 1.04 kB
/** * Copyright (c) 2015, The Regents of the University of California, * through Lawrence Berkeley National Laboratory (subject to receipt * of any required approvals from the U.S. Dept. of Energy). * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ /* eslint max-len:0 */ import React from "react"; import { render } from "react-dom"; import { Router, Route, IndexRoute, hashHistory } from "react-router"; // // Docs pages // import App from "./docs/app"; import Intro from "./docs/intro"; import DocPage from "./docs/docpage"; import ExamplePage from "./examples/example"; render(( <Router history={hashHistory}> <Route path="/" component={App}> <IndexRoute component={Intro}/> <Route path="docs/:component" component={DocPage} /> <Route path="example/:example" component={ExamplePage} /> </Route> </Router> ), document.getElementById("content"));