title: React passport together
body: <p>Hi I am creating my app using React and Node (express). It's time for building an authention using passport. Using ejs or other template language it looked very easy. What is the best way using React Components?</p>
  
  <p>Using passport we are getting true of false {req.user} for example. I would like to send that boolean to component using react dom server, and pass it to the object like props, and transofrm that props to state and pass to state object.  </p>
  
  <p>What do You think about it? Is it safely ?
  Then we can use condition like:</p>
  
  <pre><code>{this.state.signup ? this.welcome() : this.signupButton()}
  </code></pre>
  
  <p>I do not know how to do it differently. Thanks for help.</p>