Re:Scheduling in React
by philipp-spiess on Friday March 08, 2019 @06:01AM
(#19336567)
The best approach is to always updated the input synchronously in React (in the same tick when the event is handled). If you do it in another tick, you will always have to handle race conditions. This is a problem for all input elements though, not specific to React or even the Web.
That said — it only happens when one over-engineers stuff. Make sure to have a single source of truth, and that will be avoided.