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.
[ Parent
| on HN ]
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: