Building Message Input
This lesson contains the dispatch functionality for the text the user sends. The onChange event occurs when a user types, and the event further activates the handleChange function which dispatches the data to the store reducer.
We'll cover the following
Let’s now create the actual MessageInput
component.
Since this component will talk directly to the Redux store for setting and getting its typing value, it should be created in the containers directory.
While at it, also create a MessageInput.css file as well.
containers/MessageInput.js:
Get hands-on with 1400+ tech skills courses.