Hello all. I’m trying to build the Markdown Previewer in React on my computer. But I can’t figure out how to get marked.js into the project? How do you use the marked() function?
#1 - I’m not even really sure where I got that code from. confused #2 - Of course, I forgot to import the file! That caused the mishap. #3 - As long as #2 works there’s no need for this. It was just a desperation attempt.
I’ve never heard of that one but I’ll need to try it! Somebody else told me you can host pages on Github but I’m not sure about React apps.
Hey Adam, also got stack at the same problem.
you can install marked at your project folder by running the command
npm install --save marked, and don’t forget to import marked from ‘marked’; at your App file.