MCPcopy
hub / github.com/primer/react / getNextStep

Function getNextStep

packages/react/src/DataTable/__tests__/Pagination.test.tsx:307–313  ·  view source on GitHub ↗
(element: HTMLElement)

Source from the content-addressed store, hash-verified

305}
306
307function getNextStep(element: HTMLElement) {
308 const step = element.closest('li')
309 if (step) {
310 return step.nextElementSibling
311 }
312 throw new Error(`Unable to find next step`)
313}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected