File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import createHistory from 'history/createBrowserHistory'
2+
3+ const history = createHistory ( )
4+
5+ export default history
Original file line number Diff line number Diff line change @@ -3,12 +3,10 @@ import 'core-js/stable'
33import 'regenerator-runtime/runtime'
44import React from 'react'
55import ReactDOM from 'react-dom'
6- import createHistory from 'history/createBrowserHistory'
76import AppContainer from './AppContainer'
87import AppStore from './redux/store'
98import routes from './routes'
10-
11- const history = createHistory ( )
9+ import history from './history'
1210
1311const renderApp = ( id , props = { } ) => {
1412 const ROOT_DOM = document . getElementById ( id )
Original file line number Diff line number Diff line change @@ -3,13 +3,13 @@ import { createStore, applyMiddleware } from 'redux'
33import thunk from 'redux-thunk'
44import { createLogger } from 'redux-logger'
55import { routerMiddleware } from 'react-router-redux'
6- import { browserHistory } from 'react-router '
6+ import history from '../../history '
77
88import appReducer from '../reducer'
99
1010export const createAppStore = ( initialState = { } ) => {
1111 const logger = createLogger ( )
12- const router = routerMiddleware ( browserHistory )
12+ const router = routerMiddleware ( history )
1313
1414 const mids = [
1515 thunk
You can’t perform that action at this time.
0 commit comments