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

Function callback

packages/react/src/__tests__/ReactChildren-test.js:518–521  ·  view source on GitHub ↗
(kid, index)

Source from the content-addressed store, hash-verified

516 it('should invoke callback with the right context', () => {
517 let lastContext;
518 const callback = function (kid, index) {
519 lastContext = this;
520 return this;
521 };
522
523 // TODO: Use an object to test, after non-object fragments has fully landed.
524 const scopeTester = 'scope tester';

Callers 15

runTaskFunction · 0.50
unstable_runWithPriorityFunction · 0.50
unstable_nextFunction · 0.50
unstable_wrapCallbackFunction · 0.50
workLoopFunction · 0.50
workLoopFunction · 0.50
requestHostTimeoutFunction · 0.50
flushTasksFunction · 0.50
mapIntoArrayFunction · 0.50
actFunction · 0.50
flushActQueueFunction · 0.50
applyMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected