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

Function Child

src/__tests__/e2e.test.js:788–801  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

786 );
787
788 function Child() {
789 const tracking = useTracking();
790
791 expect(tracking.getTrackingData()).toEqual(outerTrackingData);
792
793 return (
794 <button
795 type="button"
796 onClick={() => {
797 tracking.trackEvent({ event: 'buttonClick' });
798 }}
799 />
800 );
801 }
802
803 const wrappedApp = mount(
804 <Page>

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…