MCPcopy Create free account
hub / github.com/FormidableLabs/react-swipeable / TestHookComponent

Function TestHookComponent

__tests__/useSwipeable.spec.tsx:1041–1044  ·  view source on GitHub ↗
({ next }: { next: () => void })

Source from the content-addressed store, hash-verified

1039 const onSwipedSpy = jest.fn();
1040
1041 function TestHookComponent({ next }: { next: () => void }) {
1042 const handlers = useSwipeable({ onSwiped: next });
1043 return <div {...handlers}>{TESTING_TEXT}</div>;
1044 }
1045
1046 function TestComponent() {
1047 const [page, setPage] = React.useState(0);

Callers

nothing calls this directly

Calls 1

useSwipeableFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…