React Directly in HTML


The quickest way start learning React is to write React directly in your HTML files. Start by including three scripts, the first two let you write React code in your JavaScripts:

<script src="https://unpkg.com/react@16/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.production.min.js"></script>

and the third, Babel, allows us to write JSX syntax and ES6 in older browsers.

<script src="https://unpkg.com/babel-standalone@6.15.0/babel.min.js"></script>

This way of using React can be OK for testing purposes, but for production you will need to set up a React environment.


     




      I was on a date with this really hot model.    
      Well, it wasn’t really a date-date.    
      We just ate dinner and saw a movie.    
      Then the plane landed.    
      — Dave Attell on first dates