Migrate import { mdx } from "@mdx-js/react"; to v2 #1951
Answered
by
wereHamster
wereHamster
asked this question in
Q&A
-
I've used |
Beta Was this translation helpful? Give feedback.
Answered by
wereHamster
Feb 25, 2022
Replies: 1 comment 3 replies
-
Tried this: import { useMDXComponents } from "@mdx-js/react";
const components = useMDXComponents()
<components.h3>Heading</components.h3> but does not type check:
But it works (ie. heading shows up, does not crash app). |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
ChristianMurphy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tried this:
but does not type check:
But it works (ie. heading shows up, does not crash app).