OptionalchildrenRender instances including the total count of visible elements.
function MyComponent(props) {
return (
<RenderInstances instances={props.children}>
{(options) => (
<Fragment>
<div>{options.visibleInstances.length} Entries</div>
<ul>
{options.visibleInstances.map((item) => (
<li>{item.render()}</li>
))}
</ul>
</Fragment>
)}
</RenderInstances>
);
}
List of instances to render.
Use Children to declare props that contain other instances.
OptionallimitLimit the maximum number of visible instances that should be rendered.
Can be used to customize rendering of the list entirely.