index.js 478 Bytes
Newer Older
bert committed
1 2 3 4
import './index.html';
import './index.less';
import ReactDOM from 'react-dom';
import React from 'react';
fukai committed
5
import { browserHistory ,hashHistory} from 'react-router';
bert committed
6 7 8 9 10 11 12
import Routes from '../routes/index';
const Provider = require('react-redux').Provider;
const configureStore = require('../store/configureStore');
const store = configureStore()

ReactDOM.render(
  <Provider store={store}>
fukai committed
13
    <Routes history={hashHistory} />
bert committed
14 15 16
  </Provider>,
  document.getElementById('root')
);