implement reactjs history

This commit is contained in:
Eric Hulburd
2016-03-04 13:59:34 -06:00
parent 5b218f6518
commit aa885f331c
27 changed files with 549 additions and 546 deletions

View File

@@ -2,13 +2,12 @@ import 'babel-polyfill';
import 'bootstrap/dist/js/bootstrap.min';
import React from 'react';
import ReactDOM from 'react-dom';
import {Router} from 'react-router';
import {ROUTES} from './dashboard/routes';
import Layout from './dashboard/layout/layout.component';
export default function(history){
export default function(createHistory){
ReactDOM.render(
React.createElement(Router, {routes: ROUTES, history: history}),
React.createElement(Layout, {createHistory: createHistory}),
document.getElementById('root')
);
};