setState in the react useState hooks can also take a callback function which has the previous value of that particular state. so you can update the previous value to whatever you want.
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.
setState in the react useState hooks can also take a callback function which has the previous value of that particular state. so you can update the previous value to whatever you want.