MCPcopy Create free account
hub / github.com/bvaughn/react-window / Example

Function Example

src/routes/grid/examples/useGridCallbackRef.tsx:13–19  ·  view source on GitHub ↗
(props: Props)

Source from the content-addressed store, hash-verified

11import { useGridCallbackRef } from "react-window";
12
13function Example(props: Props) {
14 const [grid, setGrid] = useGridCallbackRef(null);
15
16 useCustomHook(grid);
17
18 return <Grid gridRef={setGrid} {...props} />;
19}
20
21// <end>
22

Callers

nothing calls this directly

Calls 1

useCustomHookFunction · 0.70

Tested by

no test coverage detected