Hello! I’m working on my first front end libraries project, and ran into some trouble with rendering my components. To test out if I was doing it properly, I created this code to see if it passed the first test of the random quote machine, but it didn’t and I’ve been trying to figure out why for hours now.
I imported react and react-dom previously, and nothing happened.
I’m not completely sure I understand what you mean by providing a div with the id ‘root’.
I was looking at the drum machine sample project provided, and the only thing they have
in their html is #root, so why is it that they don’t need to add a div element or import anything to get their code to run properly?
Also, maybe I’m not importing them right, but this is what I have, and it still isn’t working properly.