Skip to content
Compare

MDX Preact vs hast-util-to-jsx-runtime

Side-by-side compatibility, runtime support and editorial notes for Preact projects.

Native PreactActive
MDX Preact

Official Preact context provider for supplying and merging custom components used by compiled MDX content.

npm@mdx-js/preact
Category
Developer Tools
Compatibility
Native Preact
Maintenance
Active
Runtime
TypeScriptSSRNo islandsESM
Verified
November 5, 2026
Tested with
Not documented
License
MIT
Bundle size
Not documented
Limitations
  • The package provides component context and is not required for every MDX and Preact setup.
  • Compilation and bundler integration require other MDX packages.
  • Untrusted MDX content requires a separate security model.
Score
Directory score88/100
Compatibility35/35
Maintenance20/20
TypeScript8/10
SSR10/10
Islands0/10
ESM5/5
Verification10/10
View MDX Preact profile
Native PreactMaintenance mode
hast-util-to-jsx-runtime

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

npmhast-util-to-jsx-runtime
Category
Developer Tools
Compatibility
Native Preact
Maintenance
Maintenance mode
Runtime
TypeScriptSSRNo islandsESM
Verified
Not yet verified
Tested with
Not documented
License
MIT
Bundle size
Not documented
Limitations
  • Framework-neutral transformer rather than a Preact component library; callers must provide the correct JSX runtime and handle untrusted-tree policies.
  • ESM-only and requires Node.js 16 or newer; custom components and MDX expressions require additional configuration.
Score
Directory score74/100
Compatibility35/35
Maintenance16/20
TypeScript8/10
SSR10/10
Islands0/10
ESM5/5
Verification0/10
View hast-util-to-jsx-runtime profile

At a glance

AttributeMDX Preacthast-util-to-jsx-runtime
CompatibilityNative PreactNative Preact
MaintenanceActiveMaintenance mode
TypeScriptBundled typesBundled types
SSRSSR supportedSSR supported
IslandsNoNo
Last verifiedNovember 5, 2026Not yet verified
AI auditNot auditedNot audited