componentWillReceiveProps()

in tweeter/src/components/DataProvider.js [18:25]


  componentWillReceiveProps(nextProps){
    if(nextProps.tweets!==this.props.tweets){

      const last = nextProps.tweets[nextProps.tweets.length - 1];
      console.log("OK THE TWEET TO SEND DJANGO IS ", last);
        
    }
  }