Great article on looks at the pros and cons. useState can access the previous state as well. When used as prev => ...prev over ...state, you get the same benefits. A large section of this article's benefits of useReducer just for the previous state can be negated as a result of the same functionality in useState.
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.
Great article on looks at the pros and cons.
useStatecan access the previous state as well. When used asprev => ...prevover...state, you get the same benefits. A large section of this article's benefits ofuseReducerjust for the previous state can be negated as a result of the same functionality inuseState.