Skip to content

MDX Preact

npm@mdx-js/preact

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

Native PreactActive
Verdict

Native Preact

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

When to use it

Evidence level: documented. Latest npm version checked: 3.1.1. The official docs identify the package as a context-based component provider for Preact and MDX.

Overview

`@mdx-js/preact` is the official MDX context provider for Preact. It supplies and merges the component map used when compiled MDX renders headings, links, code blocks or custom elements.