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

Function SmoothScrollExample

lib/components/list/List.test.tsx:1131–1143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1129 });
1130 const listRef = createRef<ListImperativeAPI>();
1131 function SmoothScrollExample() {
1132 const rowHeight = useDynamicRowHeight({ defaultRowHeight: 25 });
1133 return (
1134 <List
1135 defaultHeight={100}
1136 listRef={listRef}
1137 rowCount={100}
1138 rowHeight={rowHeight}
1139 rowComponent={RowComponent}
1140 rowProps={EMPTY_OBJECT}
1141 />
1142 );
1143 }
1144 const { unmount } = render(<SmoothScrollExample />);
1145 onTestFinished(unmount);
1146

Callers

nothing calls this directly

Calls 1

useDynamicRowHeightFunction · 0.90

Tested by

no test coverage detected