Guest User

Untitled

a guest
May 21st, 2018
104
0
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.     }
Add Comment
Please, Sign In to add comment