摘要: Redux介绍 单一数据源 整个单页应用的 state 都被储存在store的内部,可以通过store.getState()获取,再作为props传给对应的组件。 state应该尽量少嵌套扁平化,通过id相互引用数据。 State 为只读 为防止出现race condition和deep equal 阅读全文
posted @ 2017-08-22 15:35 开发之路 阅读(1421) 评论(0) 推荐(0) 编辑