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

Function createRow

lib/components/list/getRowElements.test.ts:12–17  ·  view source on GitHub ↗
(index: number, rowCount: number = 10)

Source from the content-addressed store, hash-verified

10}
11
12function createRow(index: number, rowCount: number = 10) {
13 return createElement({
14 "aria-posinset": `${index + 1}`,
15 "aria-setsize": `${rowCount}`
16 });
17}
18
19describe("getRowElements", () => {
20 test("returns no rows if none are rendered", () => {

Callers 1

Calls 1

createElementFunction · 0.70

Tested by

no test coverage detected