News for hackers. Stuff that matters.
Re:Why we chose Vue.js over React by Keithamus on Sunday December 11, 2016 @05:39PM (#13153836)
Wrapping them in methods is an easy way to fix that... but not sure if it is any cleaner.

    render() {
      return <If
        cond={ this.state.loggedIn }
        then={() => `Hello ${ this.state.userName }`}
        else={() => `Please log in` }
      />
    }
Re:Why we chose Vue.js over React by spion on Sunday December 11, 2016 @06:03PM (#13153978)
Or with an algebraic Maybe data type

  {this.state.user.case({
    some: user => `Hello ${ user.name }`
    none: () => `Please log in`
  })}
Or for async requests that are in progress, an algebraic 3-state type:

https://twitter.com/Tholle1234/status/804796967222202372