1
const initialState = {
user:
{
useName: '123',
passWord: ''
}
}
const userReducer = function(state=initialState, action) {
return state;
}
let store = createStore(userReducer);
2
ReactDOM.render(
<Provider store={store}>
<HashRouter history={history}>
<div className={universal.content} >
<Route exact path="/" component={StartPage} key={location.key}/>
<div className={universal.rowStart+" "+universal.content}>
<LeftNavigation ></LeftNavigation>
<div className={universal.leftContent}>
<Route path="/SysPage" component={SysPage}/>
<Route path="/JsPage" component={JsPage}/>