useBlocks
The useBlocks function is a React hook that returns the blocks, their props and values of the corresponding Section.
Usage
Use useBlocks hook can be used only in Section components and child components of a Section component.
import { useBlocks } from "builderoo";
const blocks = useBlocks()Return Values
| Name | Type | Description |
|---|---|---|
| blocks | Blocks, their props and values for the corresponding Section |
Learn more about this hook in Sections.