Basic HTML

The simplest approach is to create an index.html page that contains a react development build.

You can copy and paste the following into a simple HTML page:

<!DOCTYPE html>
    <meta charset="UTF-8" />
    <title>Hello World</title>
    <script src=""></script>
    <script src=""></script>
    <script src=""></script>
    <div id="root"></div>
    <script type="text/babel">

        <h1>Hello, world!</h1>,


Just copy-pasta this code into your favorite code editor, save as index.html and then open up the browser and point it to your file! React will run locally!

Important Notes

  • This is NOT suitable for use in production
  • The react resource being imported is a large development build of React
  • Babel transform is occuring in the browser, which is very slow