MCPcopy
hub / github.com/facebook/react / cloneHiddenInstance

Function cloneHiddenInstance

packages/react-noop-renderer/src/createReactNoop.js:943–951  ·  view source on GitHub ↗
(
          instance: Instance,
          type: string,
          props: Props,
        )

Source from the content-addressed store, hash-verified

941 },
942
943 cloneHiddenInstance(
944 instance: Instance,
945 type: string,
946 props: Props,
947 ): Instance {
948 const clone = cloneInstance(instance, type, props, props, true, null);
949 clone.hidden = true;
950 return clone;
951 },
952
953 cloneHiddenTextInstance(
954 instance: TextInstance,

Callers

nothing calls this directly

Calls 1

cloneInstanceFunction · 0.70

Tested by

no test coverage detected