Reference

@reckona/mreact/jsx-runtime

29 public exports.

Function

FunctioncreateReactiveDomBlockfunction createReactiveDomBlock<P>(render: ReactiveDomBlockRender<P>, blockProps?: P): ReactCompatElement<ReactiveDomBlockProps>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.InterfaceReactiveDomBlockPropsinterface ReactiveDomBlockPropsInterfaceReactiveDomBlockResultinterface ReactiveDomBlockResult

Namespace

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

Re-export

Re-exportElementTypeconst ElementType: unknownRe-exportForwardRefTypeconst ForwardRefType: unknownRe-exportFragmentconst Fragment: unknownFragment marker used by the automatic JSX runtime.Re-exportLazyTypeconst LazyType: unknownRe-exportMemoTypeconst MemoType: unknownRe-exportReactCompatContextProviderShorthandconst ReactCompatContextProviderShorthand: unknownRe-exportReactCompatElementconst ReactCompatElement: unknownRe-exportReactCompatNodeconst ReactCompatNode: unknownRe-exportReactCompatPortalconst ReactCompatPortal: unknownRe-exportReactCompatProviderTypeconst ReactCompatProviderType: unknownRe-exportReactCompatRenderableElementconst ReactCompatRenderableElement: unknown

Type Alias

Type AliasDomRefCallbacktype DomRefCallback = (element: Element): void | (): voidPost-commit callback for a compiler-owned intrinsic DOM element.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.Type AliasReactiveDomBlockRendertype ReactiveDomBlockRender = (props: P): ReactiveDomBlockResult

Variable

VariableREACTIVE_STATE_BINDING_METAconst REACTIVE_STATE_BINDING_META: unique symbolMetadata key that links compiler-owned DOM blocks to component state.VariableREACTIVE_TEXT_BINDING_METAconst REACTIVE_TEXT_BINDING_META: unique symbolMetadata key that links a state value to a reactive text binding.