You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using TSX with libraries that just provide a function doesn't work, because tsc always requires createElement.
I found only two ways around this, which both seem sub-optimal. One is to preserve and let another compiler handle JSX, the other is to patch the virtual dom library to provide a createElement method.
There should be a way to simply use libFn(...) instead of lib.createElement(...)
The text was updated successfully, but these errors were encountered:
Using TSX with libraries that just provide a function doesn't work, because
tsc
always requirescreateElement
.I found only two ways around this, which both seem sub-optimal. One is to
preserve
and let another compiler handle JSX, the other is to patch the virtual dom library to provide acreateElement
method.There should be a way to simply use
libFn(...)
instead oflib.createElement(...)
The text was updated successfully, but these errors were encountered: