Skip to content

remix/component · Interface

View Source

RemixElement

Summary

A virtual element produced by JSX or import('../create-element.ts').createElement describing UI. Carries an internal symbol brand that distinguishes it from plain data.

Signature

interface RemixElement {
  [REMIX_ELEMENT]: true
  $rmx: true
  key?: any
  props: ElementProps
  type: ElementType
}

Properties

[REMIX_ELEMENT]

Internal brand used to distinguish Remix elements at runtime.

$rmx

Serialization tag for Remix elements.

key

Optional reconciliation key.

props

Normalized props for the element.

type

Host tag or component function for the element.