For

For renders arrays with an optional empty-state fallback. It replaces map plus extra conditionals with a single declarative block.

Basic usage#

Render items with a callback and provide fallback for empty, null, or undefined arrays.

DOM-preserving variants#

Use For.ul or For.div to keep a container element while swapping the inner list.

Keys and stable rendering#

Provide stable key values on the elements returned by the render function.

Components - Control Flow Utilities | ilokesto - React Library Collection