React component’s lifecycle.
Osmel Mora

The statement regarding componentWillReceiveProps() lifecyle method

Calling this.setState() within this function will not trigger an additional re-render,” is wrong. As per the Latest react documentation,

“f you need to update the state in response to prop changes (for example, to reset it), you may compare this.props and nextProps and perform state transitions using this.setState() in this method”

Show your support

Clapping shows how much you appreciated Anudeep Dasari’s story.