1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00
unleash.unleash/packages/unleash-frontend-next/src/index.jsx

28 lines
926 B
React
Raw Normal View History

2016-09-12 21:39:54 +02:00
import React from 'react';
import ReactDOM from 'react-dom';
2016-09-16 21:36:35 +02:00
import { Router, Route, IndexRoute, hashHistory } from 'react-router';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import store from './store';
2016-09-12 21:39:54 +02:00
import App from './App';
2016-09-16 21:36:35 +02:00
import Features from './page/features';
import Strategies from './page/strategies';
import Logs from './page/logs';
import Archive from './page/archive';
const unleashStore = createStore(store);
ReactDOM.render(
<Provider store={unleashStore}>
<Router history={hashHistory}>
<Route path="/" component={App}>
<IndexRoute component={Features} />
<Route path="/strategies" component={Strategies} />
<Route path="/logs" component={Logs} />
<Route path="/archive" component={Archive} />
</Route>
</Router>
</Provider>, document.getElementById('app'));