Reintent

@reintent/core/jsx-runtime

The automatic JSX runtime (`jsxImportSource: '@reintent/core'`): the same elements `h` makes, and a lowercase tag is a host node of that kind (`<div>` is `host('div', …)`).

The JSX namespace lives here, scoped to the files that ask for this runtime, so it never meets React's.

Namespace JSX

Interfaces

ElementChildrenAttribute

Defined in: packages/core/src/jsx-runtime.ts

Properties
PropertyType
childrenobject

IntrinsicAttributes

Defined in: packages/core/src/jsx-runtime.ts

Properties
PropertyType
key?string | number

IntrinsicElements

Defined in: packages/core/src/jsx-runtime.ts

The lowercase tags: the host kinds the application declares in HostElements.

Extends

Type Aliases

Element

type Element = IntentElement;

Defined in: packages/core/src/jsx-runtime.ts


ElementType

type ElementType = 
  | Component
  | typeof Fragment
  | keyof IntrinsicElements;

Defined in: packages/core/src/jsx-runtime.ts

Variables

jsxDEV

const jsxDEV: (type, props, key?) => IntentElement = jsx;

Defined in: packages/core/src/jsx-runtime.ts

Parameters

ParameterType
type| string | typeof Fragment | Component<any>
propsRecord<string, unknown>
key?string | number

Returns

IntentElement


jsxs

const jsxs: (type, props, key?) => IntentElement = jsx;

Defined in: packages/core/src/jsx-runtime.ts

Parameters

ParameterType
type| string | typeof Fragment | Component<any>
propsRecord<string, unknown>
key?string | number

Returns

IntentElement

Functions

jsx()

function jsx(
   type, 
   props, 
   key?
): IntentElement;

Defined in: packages/core/src/jsx-runtime.ts

Parameters

ParameterType
type| string | typeof Fragment | Component<any>
propsRecord<string, unknown>
key?string | number

Returns

IntentElement

References

Fragment

Re-exports Fragment

Last updated on

Edit on GitHub