title: Multiple conditions in return reactjs
body: <p>I am creating a react project and I can not do multiple conditions when displaying
  My component has a state like this:
  {user
  valid: "ok"
  valid2: "ok"
  }</p>
  
  <p>In the return () I would like to add a condition to display "OK" if valid or valid2 is equal to ok
  I tried something like this:</p>
  
  <pre><code>&lt;p&gt;
   {
     this.state.user.valid === "ok" || this.state.user.valid2 === "ok" ? "ok"
  : "verify"
   }
  &lt;/p&gt;
  </code></pre>
  
  <p>But it does not work
  How to do this please?</p>
  
  <p>thank you in advance</p>