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

Function useEffect

packages/react-reconciler/src/ReactFiberHooks.js:4027–4035  ·  view source on GitHub ↗
(
      create: () => (() => void) | void,
      deps: Array<mixed> | void | null,
    )

Source from the content-addressed store, hash-verified

4025 return readContext(context);
4026 },
4027 useEffect(
4028 create: () => (() => void) | void,
4029 deps: Array<mixed> | void | null,
4030 ): void {
4031 currentHookNameInDev = 'useEffect';
4032 mountHookTypesDev();
4033 checkDepsAreArrayDev(deps);
4034 return mountEffect(create, deps);
4035 },
4036 useImperativeHandle<T>(
4037 ref: {current: T | null} | ((inst: T | null) => mixed) | null | void,
4038 create: () => T,

Callers 15

ChildFunction · 0.50
Activity-test.jsFile · 0.50
ParentFunction · 0.50
CounterFunction · 0.50
PassiveEffectFunction · 0.50
ChildFunction · 0.50
AppFunction · 0.50
NotInsertionFunction · 0.50
ComponentFunction · 0.50
CounterAFunction · 0.50
CounterBFunction · 0.50

Calls

no outgoing calls

Tested by 15

ChildFunction · 0.40
ParentFunction · 0.40
CounterFunction · 0.40
PassiveEffectFunction · 0.40
ChildFunction · 0.40
AppFunction · 0.40
NotInsertionFunction · 0.40
ComponentFunction · 0.40
CounterAFunction · 0.40
CounterBFunction · 0.40
RowFunction · 0.40
TestFunction · 0.40