News for hackers. Stuff that matters.
Re:Why we chose Vue.js over React by andrewingram on Monday December 12, 2016 @02:33PM (#13161110)
For the first example, if you're willing to risk a stage-0 transform, you could try using a shiny do expression:

  render() {
    return <div>
      {do {
        if (loggedIn) { <a>Logout</a>; } 
        else { <form onSubmit={ ... } />; }
      }}
    </div>
  }

There are no comments on this comment yet.