BlackcalB
AboutProjectsSkillsBlogContact

Blog

Showing posts tagged: useState

Technical articles about software engineering, architecture, and web development.

Alla11yaccessibilityapp-routerarchitecturecase-studyconcurrentdata-fetchingerror-handlingformshooksjavascriptmigrationnextjsopinionoptimistic-uipatternsperformanceproductionreactreact-17react-18react-19react-compilerreact-testing-libraryreduxretrospectiverscsaasserver-actionsserver-componentsssrstate-managementsuspensetestingtutorialtypescriptuseContextuseEffectuseReduceruseRefuseState

June 3, 2020

useState: Simple on the Surface, Deep Underneath

useState looks simple. Then you hit state batching, stale closures, and object mutations, and you spend a Saturday debugging something that should have taken five minutes.

reacthooksuseState

© 2026 BlackcalB