I added a new component to display error messages.
The error message is stored within the state - so I added the respective actions and reducer to do so.
The overall process is like:
Set the error message by dispatching the "setErrorMessage" function
the action will set the error message state property and perform the "shake" animation to the form
also, the action will set a timer to remove the error message after 3 seconds.
I added a new component to display error messages. The error message is stored within the state - so I added the respective actions and reducer to do so.
The overall process is like: