score:2

Accepted answer
this.setState({email: e.target.value }, this.validateEmail)

score:0

  handleEmailInput(e) {
    this.setState({email: e.target.value }, () => {
      this.validateEmail()
    })
  }

score:0

this.setState({email: value}, () => { /* State is updated */ });

Related Query

More Query from same tag