Questions
Check whether all of that information about forms has stuck by answering the following questions:
- What property on an uncontrolled
input
element can be used to set its initial value? - The following JSX is a controlled
input
element:<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
label
toinput
using thehtmlFor
attribute?<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
isSubmitted
flag withformState
to determine whether a form has been successfully submitted?