News for hackers. Stuff that matters.
Re:Generalizing JSX: Delivering on the Dream of Curried Name... by DougBTX on Thursday March 24, 2016 @07:15PM (#11357283)
Regarding the hack to make function calls: if JSX elements start with a capital letter, then the pragma is ignored, and the element name is used as a local variable name instead, e.g.:

    transform("<Foo id = 'my-element'>hi!</Foo>")
outputs

    Foo({id: "my-element"}, ["hi!"])
Re:Generalizing JSX: Delivering on the Dream of Curried Name... by tolmasky on Thursday March 24, 2016 @07:17PM (#11357308)
Yeah, it was outside the scope of this blog post, but if you look at how its implemented here: https://github.com/tolmasky/generic-jsx/blob/master/generic-... you'll see it deals with both cases.