You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The purpose of using an updater function is to get the latest,
up-to-date version of the state, which accessing this.state might not
give. Using the name prevState for something that might actually be
the next upcoming state may lead thinking astray.
0 commit comments