Skip to content
New issue

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

Create counter-React,Redux and react-redux #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SimmyZT
Copy link

@SimmyZT SimmyZT commented Apr 23, 2019

将第三章3.9.4的代码完成了,并进行了扩展:
1、初始状态不只是value,还有一个star,即将状态设置为一个对象,可以传递多个值
2、reducers函数用Object.assign(),帮助初学者理解redux的不可改变性
3、丰富了计数器的功能,帮助初学者理解怎样哪些属性是ocunter组件自己的,哪些是通过容器组件得到的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant