Hey there.
I’d like to use Visual Code to do this project, but if a type a simple div with the word “hello”, it’s not rendered to html. Why?
I installed node.js, I imported react.
The first rows of the code I quoted here are in the html, the others in the js.
If I type them in CodePen they work.
What should I do?
I’m just using Visual studio code running a live server with it. What else should I do?
I looked for it online but I just found things like this that creates a React app only. But I need an index.html and a script.jsx that work together, like the code I wrote above
It says there are no problems in the workspace.
You mean when you click Go live? I already did it… But I have a preview extension and I see nothing there, too
The browser doesn’t read a jsx file, it needs a javascript file, CodePen compiles the code for you from react to javascript, to user VSCode you need to set up an environment that does that, I can’t find a simple guide for that.
Ahh! Thank you!!
If you find a guide to do it I’d appreciate it so much.
The fact is that if I build a react app using VSCode, I can’t interface it with an html, like in CodePen.