useReducer is lower level than useState (the latter is built on the former), but you can (and often should) use useState (try saying than three times fast!) with a useReducer-like syntax.
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.
13) useReducer - I think much more useful than useState.
Why?
Because you can create much more complex state with single hooks with actions and reducer.
Thanks!
useReducer is lower level than useState (the latter is built on the former), but you can (and often should) use useState (try saying than three times fast!) with a useReducer-like syntax.