redux流程和react-redux流程

redux工作流成:

在组建里通过dispatch触发action,reducer将产生新的state,通过createStore将reducer进行包裹,然后注册监听subscribe,创造的store对象能触发action,接受reducer传过来的新的state

猜你喜欢

转载自www.cnblogs.com/MDGE/p/12641375.html