Reference

@reckona/mreact-compat/jsx-runtime

13 public exports.

Function

Functionjsxfunction 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

InterfaceJSXDOMAttributesinterface 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

NamespaceJSXconst JSX: unknownJSX namespace exported by the automatic JSX runtime.

Re-export

Re-exportFragmentconst Fragment: unknownFragment marker used by the automatic JSX runtime.

Type Alias

Type AliasFormEventtype 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.

Variable

VariableREACTIVE_TEXT_BINDING_METAconst REACTIVE_TEXT_BINDING_META: typeof REACTIVE_TEXT_BINDING_METAMetadata key that links a state value to a reactive text binding.