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

React丨props,state 和 render #4

Closed
wangjianuo opened this issue Jun 17, 2019 · 0 comments
Closed

React丨props,state 和 render #4

wangjianuo opened this issue Jun 17, 2019 · 0 comments

Comments

@wangjianuo
Copy link
Owner

小记:

当组件的state和props发生改变的时候,render函数会重新执行一次。

当父组件的render执行了,所有的子组件的render都会执行一次。

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

No branches or pull requests

1 participant