@continuum-js/dom / Each
Function: Each()
Each<
T,K>(props):Node
Defined in: index.tsx:1026
Keyed list. The by key selector defaults to identity. (Note: key is a reserved JSX attribute stripped by the compiler, so the prop is named by.)
tsx
<Each each={items} by={(i) => i.id}>{(item) => <li>{item.name}</li>}</Each>Type Parameters
T
T
K
K = T
Parameters
props
by?
(item) => K
children
(item) => Child
each
State<T[]>
Returns
Node