太阳集团城8722(中国·Macau)有限公司-Official website

<%-contentHtml%>
XML 地图

通过浏览器的window对象,我们将服务端的初始状态传递到了页面端。

    var todosApp = combineReducers({filter: filter, todos: todos});

    var store = createStore(  todosApp,

                              window.__INITIAL_STATE__,

                              applyMiddleware(thunkMiddleware, reduxLogger())

                            );

>>>> 5. 参考文献


Redux:http://redux.js.org/

Flux:https://facebook.github.io/flux/docs/overview.html

Redux DevTools:https://github.com/gaearon/redux-devtools

react-redux-isomorphic-todolist:https://github.com/foio/react-redux-isomorphic-todolist

>>>> 6. 本文案例源代码


https://github.com/foio/react-redux-isomorphic-todolist

声明:所有来源为“澳门太阳集团城网址8722”的内容信息,未经本网许可,不得转载!如对内容有异议或投诉,请与我们联系。邮箱:marketing@think-land.com

API百科
生活服务 企业工商 金融科技 接口大全 电子商务
API资讯
0512-88869195
数 据 驱 动 未 来
Data Drives The Future
XML 地图