The React component lifecycle

https://projects.wojtekmaj.pl/react-lifecycle-methods-diagram/

Three major phases of a component’s lifecycle

Mounting

constructor

render()
ReactDOM.render(element, container[, callback])

Updating

render()

componentDidUpdate(prevProps, prevState, snapshot)

Unmounting

componentWillUnmount()

ReactDOM.unmountComponentAtNode(container)

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
WangYeUX

WangYeUX

6 Followers

A front-end developer who likes designing stuffs. Technical blog rookie. Loving sharing.