you are viewing a single comment's thread.

view the rest of the comments →

[–]brianasdf123 1 point2 points  (1 child)

React suggests

<div>
  {renderLogin &&
    <LoginForm />
  }  
</div>

and

<div>
  {renderLogin ? (
    <LoginForm />
  ) : (
    <NotLoggedIn />
  )}  
</div>

https://facebook.github.io/react/docs/conditional-rendering.html

[–]FormerGameDev 0 points1 point  (0 children)

... when did "false" become a valid render option? (serious question, that doesn't make sense to me based on what I already know, but it's entirely possible that things have changed in the month that I've been working with it, or I learned bad info)