I don't think that last example makes it more readable. Not everything needs to be destructured. prevState is very explicit and that's a good thing imo
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.
I don't think that last example makes it more readable. Not everything needs to be destructured. prevState is very explicit and that's a good thing imo