MCPcopy
hub / github.com/preactjs/preact / createNullable

Function createNullable

test/browser/placeholders.test.jsx:19–23  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

17 let ops;
18
19 function createNullable(name) {
20 return function Nullable(props) {
21 return props.show ? name : null;
22 };
23 }
24
25 /**
26 * @param {string} name

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…