I can go to the site https://reactjs.org/docs/cdn-links.html, what i find there is this CDN:
<script crossorigin src="https://unpkg.com/react@17/umd/react.production.min.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@17/umd/react-dom.production.min.js"></script>
I am wondering if there is a way you can load the script async like any other javascript and place it in the like this:
<script crossorigin src="https://unpkg.com/react@17/umd/react.development.js" async></script>
<script crossorigin src="https://unpkg.com/react-dom@17/umd/react-dom.development.js" async></script>
The script I am trying to load after this does also have async in it:
<script src ="index.js" async></script>
But somehow it's not loading. And i am geting:
index.js:3 Uncaught ReferenceError: React is not defined
If i remove the async from the CDN everything works.