React JS Lifecycle methods

Lifecycle methods of any React component can be divided into three phases. Mounting (i.e. Birth) Updating (i.e. Grow) Unmounting (i.e. Death) These phases can be further divided into following methods. Mounting (i.e. Birth) Initialization & Construction Pre-mounting with componentWillMount() Component render() Post-mount with componentDidMount() Updating (i.e. Grow) Updating and componentWillReceiveProps() Using shouldComponentUpdate() Tapping into componentWillUpdate() Post-Render with componentDidUpdate() Unmounting (i.e. Death) Using componentWillUnmount() Lets have these method in detail: – Initialization & Construction: … Continue reading React JS Lifecycle methods