state = mutable data
discussion independent of techniques for reusing logic
(higher order components, render props, hooks, component composition)
React
network cache
(Apollo, Relay, react-query, SWR)
global objects
accessible state (external URL configuration)
UI state (active tooltip, open modal)
remote state (server session)
Experience
Performance
Flexibility
Scalability
Costs
Introduction to react-query. A Redux alternative?
leverage standard visual states in CSS (hover, focus...)
encapsulate code and colocate it near its usage
when referring to errors use compatible Error instances
use a naming pattern for boolean values (e.g. isX, hasX)
start locally to reduce the risk of global side affects
differentiate between different types of state