title: Expected an assignment or function call and instead saw an expression . React
body: <pre><code>if ((password2 != password) || (email == "")) {
          console.log("P2: " + password2)
          console.log("P1: " + password)
  
          if(password2 != password){
              this.setState({
                  passwordMatchFailure: true
              })
          }else{
              this.setState({
                  emailCantBeBlank: true
              })
          }
  </code></pre>
  
  <p>Why is the second setState returning 
  Expected an assignment or function call and instead saw an expression </p>
  
  <p>It seems to be fine</p>