redux工作流程
流程讲解:
客观为你的组件,组件中调用了一个方法οnclick={this.deleteItem.bind(this,index)
index为传递的数值
action为触发函数 type为触发了哪一个
dispatch为将action派发给reducers
redux工作流程
流程讲解:
客观为你的组件,组件中调用了一个方法οnclick={this.deleteItem.bind(this,index)
index为传递的数值
action为触发函数 type为触发了哪一个
dispatch为将action派发给reducers