πŸ“Š React Js
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

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