createElement

View Source

Summary

Creates a Remix virtual element from a JSX-like call signature.

Signature

function createElement(
  type: ElementType,
  props: Record<string, any>,
  children: any[],
): RemixElement;

Params

type

Host tag, component function, or mixin host placeholder.

props

Element props.

children

Child nodes.

Returns

A Remix virtual element.