Skip to content

For

For<T>(props): VirtualElement

Defined in: core/control-flow/for/index.ts:79

For control flow element

Type Parameters

T = unknown

Parameters

props

ForProps<T>

For control flow element props

using ForProps

Returns

VirtualElement

Example

<For
list={recipes$}
index={(recipe) => recipe.id}
factory={(recipe) => <RecipeCard recipe={recipe} />}
/>