Import
import { For } from '@cerberus/react'Usage
The For component is used to render a list of components or a fallback. It is an abstraction of the Array.map method.
Loading example...
API
Props
The For component accepts the following props:
| Prop | Type | Required | Description |
|---|---|---|---|
each | Array | Yes | The list of data you wish to loop through. |
fallback | ReactNode | No | Content to render when each is empty. |