How to get metadata via mdx.macro for create-react-app? #1362
-
The create-react-app sample uses the following: import {importMDX} from 'mdx.macro'
const Content = lazy(() => importMDX('./Content.mdx')) With |
Beta Was this translation helpful? Give feedback.
Answered by
ChristianMurphy
Dec 9, 2020
Replies: 1 comment
-
See #1355 (reply in thread) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lefnire
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See #1355 (reply in thread)
which shows how to use the mdx webpack loader with CRA, to get the same results as https://mdxjs.com/getting-started#exports