Very nice explanation ! I generally use reducer whenever I have a complex state that is passed through the context. In those cases, I can just have two contexts : one that contain the state and another one that contain the updater functions. This is very good for perf improvements
Very nice explanation ! I generally use reducer whenever I have a complex state that is passed through the context. In those cases, I can just have two contexts : one that contain the state and another one that contain the updater functions. This is very good for perf improvements
Thank you very much, Ndeye