I have a simple React component which has a input field with an onChange event attached. The onChange event fires, and updates the some component state with the value from the input field. However i noticed when console logging that the state is one character behinde. So if i type "Hello" the console shows the state to be
'' on H
'H' on HE
'E' on HEL
'L' on HELL
'L' on HELLO
How is that?