adspace


What are the lifecycle methods of reactjs components?

Answer Posted / Bishan Swaroop

The main lifecycle methods in React.js are: mounting (constructor, getDerivedStateFromProps, render, componentDidMount), updating (shouldComponentUpdate, getDerivedStateFromProps, render, componentDidUpdate), and unmounting (componentWillUnmount).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use events in reactjs? Give an example of using events?

564


How would you create higher order components (hocs) in react.js?

448