render

View Source

Summary

Mounts a RemixNode into a DOM container for testing.

Signature

function render(node: RemixNode, opts: RenderOptions): RenderResult;

Params

node

The node to render

opts

RenderOptions; pass opts.container to render into a specific element instead of a fresh div appended to document.body

Returns

A RenderResult with the container, root, and helpers for querying and interacting with the rendered output.