接口: CreateElement()
ReactLynx createElement 的调用签名。
调用签名
CreateElement<
Typeextends keyofIntrinsicElements>(type:Type,props?:IntrinsicElements[Type] |null, ...children:ReactNode[]):ReactElement<IntrinsicElements[Type],Type>
创建一个 Lynx 内置元素。
类型参数
参数
返回
ReactElement<IntrinsicElements[Type], Type>
调用签名
CreateElement<
Propsextendsobject>(type:string|ComponentType<Props>,props?:Attributes&Props|null, ...children:ReactNode[]):ReactElement<Props>
创建一个组件元素。
类型参数
参数
返回
ReactElement<Props>