useState
is a nice and simple hook for managing state in functional components (as opposed to setState
in class components). But as the complexities of your application grow, you’ll find yourself needing something a little more powerful.
Say “hello” to useReducer
!