πŸ“Š React Js
Q. Which method in React class components can be used to update the state?
  • (A) this.setState()
  • (B) this.updateState()
  • (C) this.modifyState()
  • (D) this.changeState()
πŸ’¬ Discuss
βœ… Correct Answer: (A) this.setState()

Explanation: setState() schedules an update to a component's state.

Explanation by: Mr. Dubey
setState() schedules an update to a component's state.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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