A

Admin • 833.24K Points
Coach

Q. How do you create a controlled component in React?

  • (A) By managing form input values in React state
  • (B) By using uncontrolled form inputs
  • (C) By directly modifying the DOM input value
  • (D) By using refs only
  • Correct Answer - Option(A)
  • Views: 24
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin

Controlled components have their state managed by React.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.