How to introduce md File in react

problem description

        {
          test: /\.md$/,
          loader: "babel!react-markdown"
        }

what result do you expect? What is the error message actually seen?

I want God to tell me how to reference md files.

May.17,2022

import md from'. / md/dd.md';
...
state = {

  markdown: '',

}
componentWillMount () {

fetch(md)
  .then(res => res.text())
  .then(text => this.setState({markdown: text}));

}
...
I don't know if you still need it, but I wrote it out.
you also said that the md introduced is the address, so use fetch to request, and personal test is available

.
Menu