Q. Which lifecycle method is invoked immediately after a component is mounted in React class components?

  • (A) componentDidMount
  • (B) componentWillMount
  • (C) render
  • (D) componentWillUnmount
πŸ’¬ Discuss
βœ… Correct Answer: (A) componentDidMount
Explanation: componentDidMount is called after the component is inserted into the DOM.
Explanation by: Mr. Dubey
componentDidMount is called after the component is inserted into the DOM.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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