kuanhsuh
8/31/2017 - 6:41 AM

react component will receive props

react component will receive props

  componentWillReceiveProps (nextProps) {
    this.setState({
      inputQuestion: nextProps.secureqalist[0].value,
    })
  }