My code may not be the best (just realized that I should be using ternary operators to set classNames), but I can confirm that the page does work on my local machine. It used to work on codepen too, which is how I submitted the project with all tests passing. Now, it no longer does.
Codepen tells me that marked is not a function on line 106. But I don’t understand how to fix this. Especially since I’ve already added the external marked script and especially because it worked just fine before.
Yeah. Those imports don’t work on codepen and only work on my local machine. Codepen allows you to simply add the external scripts as a workaround though (which is why I don’t need an import statement for React or ReactDOM)