Skip to content

hast-util-to-jsx-runtime

npmhast-util-to-jsx-runtime

Transforms HAST syntax trees into Preact VNodes through the automatic JSX runtime.

Native PreactMaintenance mode
Verdict

Native Preact

Built for Preact and does not require a React compatibility layer.

Overview

`hast-util-to-jsx-runtime` converts a HAST tree into values created by an automatic JSX runtime. Passing `Fragment`, `jsx`, and `jsxs` from `preact/jsx-runtime` produces Preact VNodes, which is useful for unified-based content pipelines and renderers such as PreactPress.