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

Function TestComponent

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

Source from the content-addressed store, hash-verified

163 const dispatchOnMount = jest.fn(() => ({ dom: true }));
164
165 function TestComponent() {
166 useTracking(testDispatchOnMount, { dispatch, dispatchOnMount });
167 return null;
168 }
169
170 mount(<TestComponent />);
171

Callers

nothing calls this directly

Calls 1

useTrackingFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…