MCPcopy Create free account
hub / github.com/QuarkGluonPlasma/react-course-code / useEffect

Function useEffect

mini-react/src/mini-react.js:241–248  ·  view source on GitHub ↗
(callback, deps)

Source from the content-addressed store, hash-verified

239 }
240
241 function useEffect(callback, deps) {
242 const effectHook = {
243 callback,
244 deps,
245 cleanup: undefined,
246 };
247 wipFiber.effectHooks.push(effectHook);
248 }
249
250 function commitRoot() {
251 deletions.forEach(commitWork)

Callers 15

MyLazyloadFunction · 0.90
useMergeStateFunction · 0.90
CalendarFunction · 0.90
useMergeStateFunction · 0.90
AppFunction · 0.90
useTimerFunction · 0.90
App.jsFile · 0.90
AppFunction · 0.90
useSizeFunction · 0.90
useCountdownFunction · 0.90
useHover.tsFile · 0.90
useWhyDidYouUpdateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected