How to load react/react-dom in a single html page?
React and/or react-dom are not loading properly. But why not?
The first complaint is react.js:14 Uncaught ReferenceError: process is not defined at react.js:14
react.js and react-dom.js are both version 16.2.0
You can use scripts hosted from a cdn like these...
<script src="https://unpkg.com/react@16/umd/react.development.js"></script> <script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script> <script src="https://email@example.com/babel.min.js"></script>
Just copy paste that and replace what you have... or if you want to host it on your own server, you can view source and copy paste them on a file. Also, please make sure that they're on the correct order.
You can also find a working example on this react guide - https://reactjs.org/docs/installation.html#creating-a-new-application
Hope this helps! Thank :)
Other options you can do to setup React locally will be...
1.) Setup your local dev environment and workflow by using bundlers like Browserify or Webpack. For that you have to have knowledge with npm and webpack. Here's a good setup tutorial if you want to do it all by yourself - https://www.codecademy.com/articles/react-setup-i
2.) Use create-react-app, which is a quick starter kit from Facebook. Here's the link to their repo - https://github.com/facebookincubator/create-react-app