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
TS2345: Argument of type 'ReactElement' is not assignable to parameter of type 'Element'.
Type 'DocumentFragment' is missing the following properties from type 'Element': attributes, classList, className, clientHeight, and 109 more.
With the previous version 8.1.4 there are no errors. I use the automatic runtime with jsx-dom-cjs.
I'm available if you need more info. Thanks to you
The text was updated successfully, but these errors were encountered:
However, I don't fully understand these changes and I don't know why the error appears in this example. I'd like to avoid creating another problem. Do you have more information?
Proposed changes:
# https://github.com/alex-kinokon/jsx-dom/blob/master/types/index.d.ts- export type ReactElement = HTMLElement | SVGElement | DocumentFragment+ export type ReactElement = HTMLElement | SVGElement
Hello @alex-kinokon,
I use this package on several projects without any problems, but it seems that the latest version
8.1.5
has introduced some errors. The following codegenerates this error
With the previous version
8.1.4
there are no errors. I use the automatic runtime withjsx-dom-cjs
.I'm available if you need more info. Thanks to you
The text was updated successfully, but these errors were encountered: