phaser-jsx
Version:
Use JSX in Phaser.
12 lines • 560 B
TypeScript
import type { ComponentClass, FC, JSX, ReactNode } from 'react';
import type { Props } from '../types';
/**
* Creates an element.
*
* @param type - The `type` argument must be a valid component type.
* @param props - The `props` argument must either be an object or `null`.
* @param children - Zero or more child elements.
* @returns - Element object with properties `type` and `props`.
*/
export declare function createElement(type: FC | ComponentClass, props?: Props | null, ...children: ReactNode[]): JSX.Element;
//# sourceMappingURL=create.d.ts.map