Updating Component On Receiving Props And Use of ComponentDidUpdate

Ayush Bansal
The Startup
Published in
2 min readJun 7, 2020

Everyday is an adventure when you start using a new framework.

When building a component using React there is often a requirement to create a side effect when one of the component props changes. This could be a call to an API to fetch some data, manipulating the DOM, updating some component state, or any…