引用包的版本:
“react”: “^16.2.0”,
“react-dom”: “^16.2.0”,
“react-hot-loader”: “^4.0.1”,
“react-redux”: “^5.0.7”,
“react-router-dom”: “^4.2.2”,
“react-router-redux”: “^5.0.0-alpha.9”,
“redux”: “^3.7.2”,
引入store的代码:
const store = createStore(
combineReducers({
reducer
})
)
const App = () => (
<Provider store={store}>
<Main />
</Provider>
)
export default hot(module)(App)
引入router的代码:
const Main = () => (
<BrowserRouter>
<div>
<Route path="/login" component={LoginContainer} />
<Route path="/home" component={HomeContainer} />
</div>
</BrowserRouter>
)
代码地址:https://github.com/quhaisi/simple-oa
求大神告知哪里出了问题