· 4 min read
ReactEvery laggy form and 'why won't this update' bug traces back to one choice: who owns the input's value — React state or the DOM. Here's how to decide.
Read article· 4 min read
2 articles
Every laggy form and 'why won't this update' bug traces back to one choice: who owns the input's value — React state or the DOM. Here's how to decide.
Using array index as a key seems harmless until inputs swap values, animations jump, and state attaches to the wrong row. Here's what keys actually do.