MCPcopy
hub / github.com/nytimes/react-tracking / Child

Function Child

src/__tests__/hooks.test.js:32–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 }
31
32 const Child = () => {
33 const { trackEvent } = useTracking();
34
35 useEffect(() => {
36 trackEvent({ test: true });
37 }, [trackEvent]);
38
39 return 'hi';
40 };
41
42 mount(
43 <TestDefaults>

Callers

nothing calls this directly

Calls 2

useTrackingFunction · 0.85
trackEventFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…