I have suggestion why don't we setup reducer as JS object instead of switch case implementation like the one i attached in the image. This way there will be a little boost in the performance as iterating through object is faster than a switch.