Repeat

Repeat renders a block a fixed number of times. It is useful for skeletons, star ratings, and placeholders.

Basic usage#

Provide a positive integer times and render a callback that receives the current index. If times is not a positive integer, fallback is rendered.

DOM-preserving variants#

Repeat.div and similar variants keep a wrapper element while repeating children.

Components - Control Flow Utilities | ilokesto - React Library Collection