Q. What happens when setState is called?

  • (A) The component is replaced
  • (B) The component is re-rendered
  • (C) Nothing happens
  • (D) The whole DOM is rebuilt
πŸ’¬ Discuss
βœ… Correct Answer: (B) The component is re-rendered
Explanation: Calling setState triggers a re-render with the updated state.
Explanation by: Mr. Dubey
Calling setState triggers a re-render with the updated state.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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