Redux初识

1、定义规则counter
2、根据计算规则生成store
let store=createStore(counter);
3、订阅消息(state 发生变化后发送消息)
4、触发规则,使state发生变化
posted @ 2017-11-28 23:39  浮云随笔  阅读(150)  评论(0编辑  收藏  举报