State management in React is not always a trivial task. React provides powerful yet simple ways of storing state, but as an application grows, the data flow needs to be carefully thought through. This article is not about what state management tool to use, because React is a great and…