News for hackers. Stuff that matters.
Re:React 16 by aboodman on Tuesday September 26, 2017 @04:32PM (#15342255)
I think the argument could be even more compelling without the es6-isms:

  function Header(props) {
    return <h1>{props.text}</h1>;
  }

  function Main() {
    return <Header text={new Date()}/>;
  }

  ReactDom.render(<Main />, document.querySelector('#app'))
Re:React 16 by mlsarecmg on Tuesday September 26, 2017 @04:45PM (#15342347)
Good call. Although the timestamp would have been impossible in Vue since templates don't have scope, they couldn't access imports. One would have to jump through another hoop and inject/duplicate the function into a template method.