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

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