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

Function createRowElement

lib/components/list/useDynamicRowHeight.test.ts:266–270  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

264
265 describe("observeRowElements", () => {
266 function createRowElement(index: number) {
267 const element = document.createElement("div");
268 element.setAttribute(DATA_ATTRIBUTE_LIST_INDEX, "" + index);
269 return element;
270 }
271
272 test("should update cache when an observed element is resized", () => {
273 const { result } = renderHook(() =>

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected