blog.logrocket.com blog.logrocket.com

Use Hooks + Context, not React + Redux

Redux introduces a lot of complexity to our codebase with the excessive amount of code it requires. At best, this makes it an imperfect solution for state management in React applications. And yet, far too many React developers default to Redux for state management without considering other alternatives. In this article, I will introduce the React Context API for state management, and show you what makes React Hooks plus the Context...