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

Function add

src/helpers/classList.js:115–120  ·  view source on GitHub ↗
(element, classString)

Source from the content-addressed store, hash-verified

113 * with ' ' as separator.
114 */
115export const add = (element, classString) =>
116 trackClass(
117 element.classList,
118 element.nodeName.toLowerCase() == "html" ? htmlClassList : docBodyClassList,
119 classString.split(" ")
120 );
121
122/**
123 * Public inferface to remove classes from the document.body.

Callers

nothing calls this directly

Calls 1

trackClassFunction · 0.85

Tested by

no test coverage detected