Q. Which lifecycle method is invoked after a component is removed from the DOM?

  • (A) componentDidMount
  • (B) componentWillUnmount
  • (C) componentDidUpdate
  • (D) shouldComponentUpdate
πŸ’¬ Discuss
βœ… Correct Answer: (B) componentWillUnmount
Explanation: `componentWillUnmount` is called before a component is unmounted and destroyed.
Explanation by: Mr. Dubey
`componentWillUnmount` is called before a component is unmounted and destroyed.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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