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.