Questions
Check whether all of that information about forms has stuck by answering the following questions:
- What property on an uncontrolled
inputelement can be used to set its initial value? - The following JSX is a controlled
inputelement:<input   id="firstName"   value={firstName} />However, users are unable to enter characters in the input. What is the problem here?
- When we implement a form field as follows, why do we tie
labeltoinputusing thehtmlForattribute?<label htmlFor="title">{label}</label> <input id="title" … /> - What object in React Hook Form allows us to access validation errors?
- What can we use from React Hook Form to determine whether the form is being submitted?
- Why don't we use the
isSubmittedflag withformStateto determine whether a form has been successfully submitted?