Skip to content

crelte / blocks / newBlocks

Function: newBlocks()

ts
function newBlocks(blocks, modules): Promise<BlocksInstance>;

Creates a new Blocks instance

Consider using the Blocks component instead

Parameters

blocks

any[]

the blocks data each block must have a typeHandle

modules

BlockModules

the modules created with blockModules

Returns

Promise<BlocksInstance>