Chapter 10: Use Case Scenario 4 – React Tracked
React Tracked (https://react-tracked.js.org) is a library for state usage tracking that optimizes re-renders automatically based on property access. It provides the same functionality to eliminate extra re-renders as Valtio, which we discussed in Chapter 9, Use Case Scenario 3 – Valtio.
React Tracked can be used with other state management libraries. The primary use case is useState or useReducer, but it can also be used with Redux (https://redux.js.org), Zustand (discussed in Chapter 7, Use Case Scenario 1 – Zustand), and other similar libraries.
In this chapter, we will again discuss optimizing re-renders with state usage tracking and compare related libraries. We will learn two usages of React ...
Get Micro State Management with React Hooks now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.