Hello Esteemed Developers,

I’m currently working on the Markdown-Previewer project. I did it on vs code locally on my computer and it’s working perfectly. But when i took it to codepen, is not displaying. I have added all necessary cdn but still not working. I would appreciate any hints pointing to the mistake I’m making. Here is the link to codepen:

You’re using React 18 but not using the new createRoot method to render. Also, there are problems in the render() function of the Editor component. Your preview div and the calls to render and process the markdown are throwing errors. You could start by commenting those parts and working forward from there.

Finally, getElementById() doesn’t need the #.

I’m sorry for the late reply. Thanks for the hints. It helps.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.