For #6, aren't we supposed to use getDerivedStateFromProps()? That way the logic would only be needed there, and wouldn't need to be repeated in the constructor.
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.
For #6, aren't we supposed to use
getDerivedStateFromProps()
? That way the logic would only be needed there, and wouldn't need to be repeated in the constructor.