How I handled React state over 10 years: 2014: Class state 2016: Redux 2018:...
How I handled React state over 10 years:
2014: Class state
2016: Redux
2018: useState, useReducer, useContext
2020: React query
2021: Zustand for globals
2024: useOptimistic, useTransition, useFormStatus, useActionState, RSC
2025: Tanstack DB or sync engine (Zero, Electric, Convex)
A few others
URL for sharable state
useLocalStorage hook
Suspense instead of loading state
Loaders for fetched page state
Tanstack form for form state
Plain variables for derived state