Changing a React Input Value from Vanilla Javascript

The short answer: Reference: https://stackoverflow.com/a/52486921/17360 The long answer: React overrides the native Javascript onChange behavior. Triggering an onChange event does nothing to change the input field value in React’s eyes. To React the value is still unchanged, even though to a user the value can clearly be seen on the screen. The above code triggers… Continue reading Changing a React Input Value from Vanilla Javascript