MCPcopy
hub / github.com/reactjs/react-modal / createHTMLElement

Function createHTMLElement

specs/helper.js:44–49  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

42 * and inside `withElementCollector`.
43 */
44export function createHTMLElement(name) {
45 const e = document.createElement(name);
46 elementPool[elementPool.length - 1].push(e);
47 e.className = `element_pool_${name}-${++i}`;
48 return e;
49}
50
51/**
52 * Remove every element from its parent and release the pool.

Callers 3

Modal.spec.jsFile · 0.90
withModalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…