MCPcopy Create free account
hub / github.com/adobe/react-spectrum / renderChildren

Function renderChildren

packages/react-aria-components/src/Virtualizer.tsx:166–175  ·  view source on GitHub ↗
(
  parent: View | null,
  children: View[],
  renderDropIndicator?: (target: ItemDropTarget) => ReactNode,
  shouldObserveItemSize?: boolean
)

Source from the content-addressed store, hash-verified

164}
165
166function renderChildren(
167 parent: View | null,
168 children: View[],
169 renderDropIndicator?: (target: ItemDropTarget) => ReactNode,
170 shouldObserveItemSize?: boolean
171) {
172 return children.map(view =>
173 renderWrapper(parent, view, renderDropIndicator, shouldObserveItemSize)
174 );
175}
176
177function renderWrapper(
178 parent: View | null,

Callers 2

CollectionRootFunction · 0.70
CollectionBranchFunction · 0.70

Calls 1

renderWrapperFunction · 0.85

Tested by

no test coverage detected