Skip to content

fragmentList

fragmentList(fragments, base): FieldState[]

Defined in: react/src/useFragments.ts:418

The paragraphs of an array-fallback field, in order: fragmentList(f, "intro") returns the states of intro1…introN — really N separate fields, each with its own budget and swap, which is what keeps a whole section layout-stable. Map over it with your own markup:

{fragmentList(f, “intro”).map((p, i) => (

))}

UseFragmentsResult

string

FieldState[]