Guest User

Untitled

a guest
May 21st, 2018
34
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. componentWillReceiveProps( nextProps ) {
  2.         if (this.props !== nextProps) {
  3.             this.setState( () => {
  4.                 return {
  5.                     inputValue: nextProps.inputValue
  6.                 }
  7.             })
  8.         }
  9.     }
RAW Paste Data