import 'whatwg-fetch'; import 'react-mdl/extra/material.css'; import 'react-mdl/extra/material.js'; import React from 'react'; import ReactDOM from 'react-dom'; import { applyRouterMiddleware, Router, Route, IndexRedirect, hashHistory } from 'react-router'; import { useScroll } from 'react-router-scroll'; import { Provider } from 'react-redux'; import thunkMiddleware from 'redux-thunk'; import { createStore, applyMiddleware, compose } from 'redux'; import store from './store'; import App from './component/app'; import Features from './page/features'; import CreateFeatureToggle from './page/features/create'; import ViewFeatureToggle from './page/features/show'; import Strategies from './page/strategies'; import StrategyView from './page/strategies/show'; import CreateStrategies from './page/strategies/create'; import HistoryPage from './page/history'; import HistoryTogglePage from './page/history/toggle'; import Archive from './page/archive'; import Applications from './page/applications'; import ApplicationView from './page/applications/view'; let composeEnhancers; if (process.env.NODE_ENV !== 'production' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__) { composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__; } else { composeEnhancers = compose; } const unleashStore = createStore( store, composeEnhancers( applyMiddleware(thunkMiddleware) ) ); // "pageTitle" and "link" attributes are for internal usage only ReactDOM.render( , document.getElementById('app'));