MCPcopy Create free account
hub / github.com/microsoft/SandDance / memo

Function memo

docs/external/js/react.development.js:1532–1544  ·  view source on GitHub ↗
(type, compare)

Source from the content-addressed store, hash-verified

1530 }
1531
1532 function memo(type, compare) {
1533 {
1534 if (!isValidElementType(type)) {
1535 error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
1536 }
1537 }
1538
1539 return {
1540 $$typeof: REACT_MEMO_TYPE,
1541 type: type,
1542 compare: compare === undefined ? null : compare
1543 };
1544 }
1545
1546 function resolveDispatcher() {
1547 var dispatcher = ReactCurrentDispatcher.current;

Callers

nothing calls this directly

Calls 2

isValidElementTypeFunction · 0.85
errorFunction · 0.70

Tested by

no test coverage detected