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

Function createRowElement

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

Source from the content-addressed store, hash-verified

135
136 describe("observeRowElements", () => {
137 function createRowElement(index: number) {
138 const element = document.createElement("div");
139 element.setAttribute(DATA_ATTRIBUTE_LIST_INDEX, "" + index);
140 return element;
141 }
142
143 test("should update cache when an observed element is resized", () => {
144 const { result } = renderHook(() =>

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected