Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/reactjs/react-modal
/ createHTMLElement
Function
createHTMLElement
src/components/Modal.js:19–19 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
17
const
isReact16 = canUseDOM && ReactDOM.createPortal !== undefined;
18
19
let
createHTMLElement = name => document.createElement(name);
20
21
const
getCreatePortal = () =>
22
isReact16
Callers
2
componentDidMount
Method · 0.70
render
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected