-
Book Overview & Buying
-
Table Of Contents
Full-Stack React, TypeScript, and Node - Second Edition
By :
Redux has long been the go-to framework for creating and managing global state in enterprise React applications (although we can use Redux in any JavaScript app, not just React). As we mentioned at the start of this chapter, lighter alternatives like Zustand have gained significant traction, but Redux remains widely used in large-scale enterprise development thanks to its strict patterns, powerful developer tools, and mature ecosystem. You may find that Redux is difficult to understand at first. However, once we do learn it, we'll see its many benefits and why it is so often the choice for large, complex React applications.
We learned about React state in Chapter 4, Learning Single-Page Application Concepts and How React Enables Them, and Chapter 5, React Development with Hooks. To briefly recap: state is the main driver of all UI changes in React. When state changes, React re-renders the affected components and updates the DOM to match. This is where the library gets...