RenderBlocks
RenderBlocks<
TBlock>(props):ReactNode
Defined in: packages/react/src/components/RenderBlocks.tsx:59
Dispatches a blocks-field value to per-type renderers in document order.
Replaces the hand-written switch (block.blockType) pattern. Keys are
block.id — unique per entry, stable across reorders in the admin panel.
Type Parameters
Section titled “Type Parameters”TBlock
Section titled “TBlock”TBlock extends RenderableBlock
Parameters
Section titled “Parameters”RenderBlocksProps<TBlock>
Blocks value, per-type renderer map, and optional fallback.
Returns
Section titled “Returns”ReactNode
The rendered sequence, or null for an empty/absent array.