State of Enjoyment
summary
Argues that data types should carry their operations so code declares “increment” or “toggle” once and reuses it; contrasts setState, Redux and MobX with a tiny library called microstates that returns new objects (no in-place mutation) to preserve value stability. Shows React demos with Reactive Tools where microstates produces far fewer spurious rerenders than setState or naive Redux, explains benefits of getters, caching and composability, and demonstrates the approach working in practice.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 1:05Numbers can increment
- 3:36Booleans have known transitions
- 5:45Complexity grows with data
- 7:52Types define data operations
- 11:28Mutable vs immutable APIs
- 14:25Salvaging with functional tweaks
- 15:58Microstates and composition
- 17:24Immutability benefits
- 21:38Value stability in rendering
- 24:53Performance without optimization
- 25:56State management needs
- 28:04State management jQuery era
- 29:08Conclusion and call to action








