Q. What is the difference between controlled and uncontrolled components in React?

  • (A) Controlled components have their value controlled by React state, uncontrolled components manage their own state
  • (B) Controlled components are class components, uncontrolled are functional
  • (C) Controlled components do not have state, uncontrolled do
  • (D) There is no difference
πŸ’¬ Discuss
βœ… Correct Answer: (A) Controlled components have their value controlled by React state, uncontrolled components manage their own state
Explanation: Controlled components receive their value from props and notify changes via callbacks.
Explanation by: Mr. Dubey
Controlled components receive their value from props and notify changes via callbacks.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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