adspace
Answer Posted / Surya Pratap
The life cycle of ReactJS consists of several phases, which are triggered at different times during a component's lifespan. The main methods include: Mounting - constructor(), getDerivedStateFromProps(), render(), and componentDidMount. Updating - getDerivedStateFromProps(), shouldComponentUpdate(), render(), and componentDidUpdate. Unmounting - componentWillUnmount.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers