The statement regarding componentWillReceiveProps() lifecyle method
Anudeep Dasari

Thanks for your feedback. Regarding componentWillReceiveProps(), yes you can call setState() — like it’s shown in an example after the aforementioned statement — but React batches the updates and the render method it’s called only once. Not twice like most new to React might probably think due to new props coming from the parent and a call to setState, both trigger a re-render.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.