Reference
@reckona/mreact-compat/jsx-runtime
13 public exports.
Function
Functionjsx
function jsx<P>(type: ElementType<P>, props: P & { children?: ReactCompatNode; key?: unknown; ref?: unknown } | null, key?: unknown): ReactCompatElement<P>Creates a single-child JSX element for the automatic JSX runtime.Functionjsxsfunction jsxs<P>(type: ElementType<P>, props: P & { children?: ReactCompatNode; key?: unknown; ref?: unknown } | null, key?: unknown): ReactCompatElement<P>Creates a multi-child JSX element for the automatic JSX runtime.Interface
InterfaceJSXDOMAttributes
interface JSXDOMAttributesDOM event attributes accepted by JSX elements.InterfaceJSXHTMLAttributesinterface JSXHTMLAttributesHTML attributes accepted by JSX host elements.InterfaceJSXIntrinsicAttributesinterface JSXIntrinsicAttributesAttributes accepted by every JSX element.InterfaceJSXIntrinsicElementsinterface JSXIntrinsicElementsBuilt-in JSX element names and their attribute types.Namespace
Re-export
Type Alias
Type AliasFormEvent
type FormEvent = JSXEvent<TCurrentTarget, SubmitEvent>Submit event type used by form-related JSX attributes.Type AliasFormEventHandlertype FormEventHandler = JSXEventHandler<TCurrentTarget, SubmitEvent>Submit event handler type used by form-related JSX attributes.Type AliasJSXEventtype JSXEvent = TEvent & { currentTarget: TCurrentTarget }DOM event type with a narrowed currentTarget.Type AliasJSXEventHandlertype JSXEventHandler = (event: JSXEvent<TCurrentTarget, TEvent>): unknownEvent handler type used by JSX DOM attributes.