Function: createElement()
Creates a ReactLynx element using the snapshot runtime.
Call Signature
createElement<
Typeextends keyofIntrinsicElements>(type:Type,props?:IntrinsicElements[Type] |null, ...children:ReactNode[]):ReactElement<IntrinsicElements[Type],Type>
Creates an element for a Lynx intrinsic element.
Type Parameters
Parameters
Returns
ReactElement<IntrinsicElements[Type], Type>
Call Signature
createElement<
Propsextendsobject>(type:string|ComponentType<Props>,props?:Attributes&Props|null, ...children:ReactNode[]):ReactElement<Props>
Creates an element for a component.
Type Parameters
Parameters
Returns
ReactElement<Props>