Skip to content

Commit

Permalink
Allow for DocumentFragment in createPortal (#4003)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock authored May 15, 2023
1 parent 1451a0e commit 8fe5401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compat/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ declare namespace React {

export function createPortal(
vnode: preact.VNode,
container: Element
container: Element | DocumentFragment
): preact.VNode<any>;

export function render(
Expand Down

0 comments on commit 8fe5401

Please sign in to comment.