handleChange() function causing crash for some reason

  1. Because of the updater function for the handleChange. You can read more about it in the post below.

setState and event.target

  1. state.messages now has to be using this (without the updater function)
1 Like