Go ProSign in
Start Learning React

Start Learning React


    Control React Component Updates When New Props Are Received

    Joe MaddaloneJoe Maddalone

    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.

    You must be a Member to view code