Let’s add a state management solution to a React app in just a few lines of code! — The Problem As your React application grows, you will likely need a solution for state management. State management can be a difficult problem to solve, and although there are several solutions available (Redux, React Context, Apollo, etc.) some can be difficult to implement and each has its pros and cons.