Hi all,
I’m trying to run React on my laptop. I’m using notepad++.
I’ve added these three lines , above the tag:
<script src="https://unpkg.com/react@16/umd/react.development.js" crossorigin></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js" crossorigin></script>
<script src="reactfile.js" type="text/babel"></script>
the reactfile.js is my react file.
I addes these line to test:
ReactDom.render(<p>testing</p>,document.getElementById("react-test"));
So shouldn’t it add the word “testing” in a § tag on my page?
There is a div tag that has the id of “react-test” , above the 3 script lines.
I can see nothing added to my page so I’m not sure if it’s working or if I’m doing something wrong?
Thanks so much!