Basic Markdoc Implementation in React
So I was trying to implement Markdoc into my frontend app, which requires a basic markdown section. I’ve encountered Markdoc before, and was quite keen to try it out. And thus I followed along to their instructions on their integration guide for React. However, I found the guide pretty cryptic, and was basically a much more advanced configuration than what I needed. All I needed to do was to render some markdown file saved on the frontend onto the page. Did I need to create a Markdoc schema? What even are they? (And why bombard new users with unexplained schema definition files?) Did I need to create an express server in my case? No. So detailed below is my own much leaner implementation of it: ...