UseReducer() Hook
Note: You can pass any object to useState, but useReducer is better for more complex data structures, e.g. mostly larger objects, because it guarentees that the you are relying on the most current state, and you can pass custom reducer functions whi...
omarsaade.hashnode.dev10 min read