v0.20.230 - 8 / 6.1

<For .../>

Reactive version of array.map for reactive lists

# Arguments

nametypedescription
eachsignal/iterable object an iterable or a signal whose value is iterable
restoreFocusbooleanwhen items are reordered, the DOM swap can steal focus and scroll position. Set to true to save and restore both around the swap.
fallbackanyrendered when the list is empty
reactiveIndexbooleanwhen true, the callback receives a reactive signal for the index instead of a plain number

# Simple Test

Use a For to display some values, blink updates

# Heavy Test

Stress test

# Fallback

For when the list has no items, render a fallback