Reference

createElement

Creates a React-compatible element from a type, config object, and children.

Signature

function createElement<P>(type: ElementType<P>, config: P & ReactReservedProps | null, ...children: ReactCompatNode[]): ReactCompatElement<P>