INNER CODE UNIT · TypeScript
createElement
infernojs/inferno · packages/inferno-create-element/src/index.ts:37
export function createElement<P, T extends Element = Element>(
type: string,
props?: (P & CreateElementProps<T>) | null,
...children: any[]
): VNode;
// Function components and forwardRef components
export function createElement<P>(
type: Inferno.StatelessComponent<P & Refs<P>>,
props?: (P & CreateFunctionElementProps<P>) | null,
...children: any[]
): VNode;
// Class components, the ref receives the component instance
export function createElement<P>(
type: Inferno.ComponentClass<P> | typeof Component<P, any>,
props?: (P & CreateElementProps<unknown>) | null,
...children: any[]
): VNode;
export function createElement<P>(