Closed
Description
Seems like Babel supports other JSX factories other than React.createElement(...)
:
Here is docs from deku
another JSX framework from Segment.io
Using .babelrc
:
{
"jsxPragma": "element"
}
Source: https://github.com/dekujs/deku/blob/master/docs/guides/jsx.md#babelrc
I propose we add something similar to the TS compiler options. Letting people to do a post build of preserved JSX element is not the nicest solution.