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
πŸ’¬ Discuss
βœ… Correct Answer: (A) By managing form input values in React state
Explanation: Controlled components have their state managed by React.
Explanation by: Mr. Dubey
Controlled components have their state managed by React.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
75
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
93%
Success Rate