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

Function incrementReference

src/helpers/classList.js:61–67  ·  view source on GitHub ↗
(poll, className)

Source from the content-addressed store, hash-verified

59 * @return {string}
60 */
61const incrementReference = (poll, className) => {
62 if (!poll[className]) {
63 poll[className] = 0;
64 }
65 poll[className] += 1;
66 return className;
67};
68
69/**
70 * Drop the reference of a class.

Callers 1

trackClassFunction · 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…