Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deco/blocks/utils.tsx>newComponentBlock

deco is the edge-native site editor and app framework for building dynamic, high-performance sites with a built-in visual admin UI.
Go to Latest
variable newComponentBlock
import { newComponentBlock } from "https://deno.land/x/deco@1.40.2/blocks/utils.tsx";

type

<K extends string>(type: K, defaultDanglingRecover?: Resolver<PreactComponent> | Resolver<PreactComponent>[]) => Block<BlockModule<ComponentFunc, JSX.Element | null, PreactComponent>, ComponentFunc, K>