adspace
Answer Posted / Vipin Dahiya
The main lifecycle methods in React are: `constructor()`, `getDerivedStateFromProps()`, `render()`, `componentDidMount()`, `shouldComponentUpdate(nextProps, nextState)`, `getSnapshotBeforeUpdate(prevProps, prevState)`, `componentDidUpdate(prevProps, prevState, snapshot)`, and `componentWillUnmount()`.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers