-
Book Overview & Buying
-
Table Of Contents
Full-Stack React, TypeScript, and Node - Second Edition
By :
In this chapter, we'll learn about Redux, React Context, and React Router. Redux (specifically Redux Toolkit) has long been the standard for managing global state in React applications, and it remains a strong choice for large-scale projects that benefit from its strict patterns and powerful developer tools. However, lighter alternatives like Zustand have gained significant popularity in recent years for their minimal boilerplate and simpler API. We'll focus on Redux in this chapter because understanding its concepts (stores, reducers, dispatching actions) provides a solid foundation that applies to any state management approach. React Context is also a built-in alternative for simpler global state needs. React Router is the most popular framework for managing client-side URL routing:
Change the font size
Change margin width
Change background colour