In this lesson, when a user submits the form, we are going to indicate if the form is being processed to give the user some feedback to have a more pleasant user experience.
Right after the form is submitted and the client waits for a response:
- By looking at the result we can immediately see that there is a new thing in the form, it is a loading indicator on the button.
Create a new component
src/components/IconSpinner.jsx with the following content...