MCPcopy Create free account
hub / github.com/reactjs/react-modal / assertNodeList

Function assertNodeList

src/helpers/ariaAppHider.js:34–40  ·  view source on GitHub ↗
(nodeList, selector)

Source from the content-addressed store, hash-verified

32/* eslint-enable no-console */
33
34export function assertNodeList(nodeList, selector) {
35 if (!nodeList || !nodeList.length) {
36 throw new Error(
37 `react-modal: No elements were found for selector ${selector}.`
38 );
39 }
40}
41
42export function setElement(element) {
43 let useElement = element;

Callers 1

setElementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…