Open max-kamps opened 1 year ago
The changes in TS 5.1 ended up not being helpful. Neither will 5.2.
There is an active TypeScript issue about a feature that would allow correctly typechecking children
of JSX elements: https://github.com/microsoft/TypeScript/issues/14729
Currently, the following problems exist:
util.jsxCreateElement
is slowdocument.createElement
is the culprit, maybe switch to string templatingjsx.d.ts
is morally wrongchildren
correctly (not all HTML elements can contain all other HTML elements)