As an update, I updated the article just now to hopefully be more clear.
I changed the header text to:
Setting state that relies on the previous state without using a function
And I added this paragraph at the end of the section:
The key here is that if your new state relies on the value of the old state, you should always use a function as the argument. If you are setting a value that does not rely on the value of the old state, then you can use an object as the argument.
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.
As an update, I updated the article just now to hopefully be more clear.
I changed the header text to:
And I added this paragraph at the end of the section: