MCPcopy
hub / github.com/bvaughn/react-window / createRowElement

Function createRowElement

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

Source from the content-addressed store, hash-verified

119
120 describe("observeRowElements", () => {
121 function createRowElement(index: number) {
122 const element = document.createElement("div");
123 element.setAttribute(DATA_ATTRIBUTE_LIST_INDEX, "" + index);
124 return element;
125 }
126
127 test("should update cache when an observed element is resized", () => {
128 const { result } = renderHook(() =>

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…