-
Notifications
You must be signed in to change notification settings - Fork 221
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
Remove Outdated react lifecycle components & updated the react version to 16.4.1 #227
Remove Outdated react lifecycle components & updated the react version to 16.4.1 #227
Conversation
} | ||
|
||
componentWillUpdate(nextProps, nextState) { | ||
shouldComponentUpdate(nextProps, nextState) { | ||
if (nextState.showDropdown) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although it's work, but I'm not sure if it is an anti-pattern to put codes which is not related to component-update control. 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
componentWillUpdate is gone.
The only place left for component will update code to go is in should component update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, got it. 👌
Merging it !! |
…n to 16.4.1 (patw0929#227) * Bumping React version to 16.4.1 & removing deprecated lifecycle events
@patw0929