Reducers in React - Making reducers lean and shedding that extra code.
Reducers are the basic building blocks of state handling in react.
But as my react project scaled with more and more states to handle, my reducer functions got bulkier with a lot of repeated code.
The below reducer is an example. If you look closely,...
saurishkar.com3 min read