The react.wiki Blog
Tutorials and deep dives for React developers.

When useState Lies to You (And Why That’s By Design)
useState doesn’t hold values—it holds *promises*. Its “lies” (frozen reads, delayed writes, closure-scoped snapshots) aren’t bugs—they’re deliberate abstractions that uphold React’s consistency contract.
#react#useState#react-internals
6/22/2026 · 5 min read

The useState Setter Queue Trap: Why Functional Updates Aren’t Always Enough in React
Learn how React’s batching and setter queuing can cause stale state reads—even with functional updates—and why useReducer or custom coordination hooks are safer for async state logic.
#react#useState#useReducer
6/21/2026 · 6 min read