MCPcopy Index your code
hub / github.com/streamich/react-use / getHook

Function getHook

tests/useWindowSize.test.tsx:24–26  ·  view source on GitHub ↗
(options?: any)

Source from the content-addressed store, hash-verified

22 });
23
24 function getHook(options?: any) {
25 return renderHook(() => useWindowSize(options));
26 }
27
28 function triggerResize(dimension: 'width' | 'height', value: number) {
29 if (dimension === 'width') {

Callers 1

Calls 1

useWindowSizeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…