DEV Community

Discussion on: How Much State is Too Much State in React?

Collapse
 
stereoplegic profile image
Mike Bybee • Edited

The general sentiment is that once you get beyond two or three useState calls in a component, it's time to start looking into useReducer.

A lot of this looks like a better case for server (or serverless) cache (e.g. React Query, SWR, GraphQL, AppSync, Firebase) than local state with built in hooks.