We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
一个简单的react-redux的项目一般都包括reducers, action , component , container。
reducers
action
component
container
mapStateToProps
mapDispatchToProps
connect
reducers 定义好后,需要在根组件下使用redux提供的createStore调用,然后通过react-redux提供的provider把createStore返回的store传给子组件。
createStore
provider
store
以上只是简单的描述,具体的代码可以查看这个demo,可以会更深刻一点。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
一个简单的react-redux的项目一般都包括
reducers
,action
,component
,container
。mapStateToProps
,mapDispatchToProps
,引入react-redux的connect
,component,将mapStateToProps里的state,mapDispatchToProps的函数通过props传给componentreducers 定义好后,需要在根组件下使用redux提供的
createStore
调用,然后通过react-redux提供的provider
把createStore返回的store
传给子组件。以上只是简单的描述,具体的代码可以查看这个demo,可以会更深刻一点。
The text was updated successfully, but these errors were encountered: