πŸ“Š React Js
Q. Which statement is true about state in React?
  • (A) State can be changed directly
  • (B) State updates are synchronous
  • (C) State should be immutable
  • (D) State is used only in class components
πŸ’¬ Discuss
βœ… Correct Answer: (C) State should be immutable

Explanation: State should not be changed directly; it should be updated immutably using setState or state setters.

Explanation by: Mr. Dubey
State should not be changed directly; it should be updated immutably using setState or state setters.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
58
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
94%
Success Rate