【发布时间】:2018-02-17 02:23:05
【问题描述】:
我已经调度了一个不包含任何异步代码的动作,例如 ajax 调用或任何改变减速器状态的东西。我可以在 react 应用程序的下一行访问更改后的 reducer 状态吗?
React APP
actions.setName('Test'); //this sets the name in state of reducer to Test
//Can I access the name in the next line
const name = this.props.name;
【问题讨论】:
标签: javascript reactjs redux