Redux/Este 中的 actions 如何连接到 reducers
How are the actions wired to reducers in Redux/Este
我正在使用Este starter kit to build a universal react app (it uses react-redux
and react-router
. Looking at the example on NewTodo component我可以理解connect
用于将动作连接到组件。
export default connect(null, { addTodo })(NewTodo);
但我没有理解 reducer 是如何连线的?
在 Redux 应用程序中,reducer 通常是如何连接的?
我正在使用Este starter kit to build a universal react app (it uses react-redux
and react-router
. Looking at the example on NewTodo component我可以理解connect
用于将动作连接到组件。
export default connect(null, { addTodo })(NewTodo);
但我没有理解 reducer 是如何连线的?
在 Redux 应用程序中,reducer 通常是如何连接的?