dillon1000/react

Commit

Constrain the container type of createPortal (#24496)

We already constrained the type of createRoot (can't take document) and hydrateRoot (can't take fragments).
Browse files
Changed paths1 file
First-parent comparison
M packages/react-dom/src/client/ReactDOM.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…