Try this exercise. Click the correct answer from the options.
What is the purpose of the onSubmit
event listener in a form in React?
Click the option that best answers the question.
- To trigger form validation
- To capture user input
- To handle form submission
- To reset the form