0 votes
in ReactJS by
Component Life cycle Methods in React Native

1 Answer

0 votes
by
Component Life cycle Methods

Mounting invoked when a component instance is being created:

  • constructor()
  • componentWillMount()
  • render()
  • componentDidMount()

Updating changes to props or state can cause an update. These methods are invoked when a component is being re-rendered:

  • componentWillReceiveProps()
  • shouldComponentUpdate()
  • componentWillUpdate()
  • render()
  • componentDidUpdate()

Unmountingi nvoked immediately before a component is unmounted:

  • componentWillUnmount()

Related questions

0 votes
0 votes
asked Nov 24, 2019 in Angular by rajeshsharma
0 votes
asked May 29, 2020 in ReactJS by anonymous
...