Skip to Content

NodeTypes

GitHub 上的源代码 

¥Source on GitHub 

NodeTypes 类型用于定义自定义节点类型。对象中的每个键代表一种节点类型,其值是应为该类型渲染的组件。

¥The NodeTypes type is used to define custom node types. Each key in the object represents a node type, and the value is the component that should be rendered for that type.

type NodeTypes = { [key: string]: React.ComponentType<NodeProps>; };
Last updated on