We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It needs to accept either Node, or (DocumentFragment | Element), depending on what it actually needs (more likely the latter).
Node
DocumentFragment | Element
Discovered when trying to fit ShadowRoot into render, which isn't an Element but works perfectly fine with render if it pretends to be.
ShadowRoot
render
Element
Also checked TypeScript's bindings, and they are equally wrong on this point. They do accept null though...
null
The text was updated successfully, but these errors were encountered:
Had a look at react to figure out what ti actually supports. Doc comments say the type is DOMElement, but according to the code that's clearly incorrect. This is the actual check: https://github.com/facebook/react/blob/master/src/renderers/dom/stack/client/ReactMount.js#L235-L240
DOMElement
This is the PR that added it: facebook/react#3169 And there's some dicussion here: facebook/react#840
I suggest adding the overloads renderToDocument and renderToDocumentFragment post-reasonjs-upgrade.
renderToDocument
renderToDocumentFragment
Sorry, something went wrong.
No branches or pull requests
It needs to accept either
Node
, or (DocumentFragment | Element
), depending on what it actually needs (more likely the latter).Discovered when trying to fit
ShadowRoot
intorender
, which isn't anElement
but works perfectly fine withrender
if it pretends to be.Also checked TypeScript's bindings, and they are equally wrong on this point. They do accept
null
though...The text was updated successfully, but these errors were encountered: