Hm, interested in hearing more about the issue with value and how it's affected with requestAnimationFrame batching. Is that to say if a text field isn't "bound" to the model with key presses, relying on the DOM to keep state, there will be inconsistencies?
Hm, interested in hearing more about the issue with
value
and how it's affected withrequestAnimationFrame
batching. Is that to say if a text field isn't "bound" to the model with key presses, relying on the DOM to keep state, there will be inconsistencies?Right - if you use
defaultValue
to let the DOM's version of reality "take precedence" and useonInput
to listen for changes, it's all good.Unless you actually need to manually override that value! Then it's a pain. 🙂