How do I dynamically read md file using react.js #10217
Unanswered
flamecopper
asked this question in
General
Replies: 1 comment
-
You can get the "source" of any file thanks to Webpack raw-loader Example documented here: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Topic as above,
const rawData = await import(@site/docs/ios/book1.md');
// console.log(rawData.default);
However, it is returning me an mdx object
Beta Was this translation helpful? Give feedback.
All reactions