React · Middle · Question 32 of 75

Why is React Hook Form usually faster than forms with controlled fields?

Explanation

In a controlled form, every keystroke updates state and re-renders the form. RHF registers fields via register and keeps values outside React state, re-rendering only what's subscribed (watch, errors). Validation can run on onChange, onBlur and onSubmit, often with Zod or Yup schemas.

Further reading

Problem with a question

React · Middle · question 32

Test yourself

Take the React · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz