- Because of the updater function for the
handleChange
. You can read more about it in the post below.
setState and event.target
state.messages
now has to be usingthis
(without the updater function)
handleChange
. You can read more about it in the post below.setState and event.target
state.messages
now has to be using this
(without the updater function)