To save and submit form data, we'll convert our component into a React-controlled component. We will use the component state to save the current values of input fields.