If you have started to learn about state management with JavaScript then you have likely heard about reducer functions. This video explains the concepts behind reducer functions with a couple simple examples.
Code from video: https://gist.github.com/prof3ssorSt3v...