This was definitely asked a lot on StackOverflow, as setState provides a callback, but setting states using useState hooks' updator functions don't provide the same functionality.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thank you for sharing this trick, Chandra.
This was definitely asked a lot on StackOverflow, as
setState
provides a callback, but setting states usinguseState
hooks' updator functions don't provide the same functionality.