News for hackers. Stuff that matters.
Re:How I converted my React app to VanillaJS by k__ on Monday January 02, 2017 @06:43AM (#13300588)
Yes, this is a shortcut for:

    const h1 = function() {
      return makeElement('h1');
    }
Arrow functions without arguments need empty paranthesis.

They also have an implicit return if you don't use {}

There are no comments on this comment yet.