Project
reworks
A collection of React components and hooks for small state synchronization problems.
Writing angle
A practical note about when local draft state should reset from props, and why effect timing sometimes matters.
Interactive demo
inlineA hook behavior lab that shows how a child draft value diverges from a parent value, then syncs again when the source changes.
reworks
Draft state sync lab
A tiny model of `useDraft`: local edits can diverge, then reset when the source prop changes.
Parent prop 0
Child draft 0
Status synced