HIDE PLAYLIST

30% off

1 Year Pro Membership

Control React Component Updates When New Props Are Received


The React component lifecycle will allow you to update your components at runtime. This lesson will explore how to do that. componentWillReceiveProps gives us an opportunity to update state by reacting to a prop transition before the render() call is made. shouldComponentUpdate allows us to set conditions on when we should update a component so that we are not rendering constantly. componentDidUpdate lets us react to a component updating.

Please take a moment to tell your friends:

You must be a PRO Member to view code