UNPKG

@types/react

Version:
26 lines (23 loc) • 575 B
// Expose `JSX` namespace in `global` namespace import * as React from "./"; export { Fragment } from "./"; /** * Create a React element. * * You should not use this function directly. Use JSX and a transpiler instead. */ export function jsx( type: React.ElementType, props: unknown, key?: React.Key, ): React.ReactElement; /** * Create a React element. * * You should not use this function directly. Use JSX and a transpiler instead. */ export function jsxs( type: React.ElementType, props: unknown, key?: React.Key, ): React.ReactElement;