Function: createElement()
使用 snapshot 运行时创建 ReactLynx 元素。
Call Signature
createElement<
Typeextends keyofIntrinsicElements>(type:Type,props?:IntrinsicElements[Type] |null, ...children:ReactNode[]):ReactElement<IntrinsicElements[Type],Type>
创建一个 Lynx 内置元素。
Type Parameters
Parameters
Returns
ReactElement<IntrinsicElements[Type], Type>
Call Signature
createElement<
Propsextendsobject>(type:string|ComponentType<Props>,props?:Attributes&Props|null, ...children:ReactNode[]):ReactElement<Props>
创建一个组件元素。
Type Parameters
Parameters
Returns
ReactElement<Props>