Building Your First React App |


by kirupa | 10 October 2016

By now, you probably know all about the backstory of React and how it helps even your most complex user interfaces sing performantly. For all the awesomeness that React brings to the table, getting started with it (kinda like this sentence) is not the most straightforward thing. It has a steep learning curve filled with many small and big hurdles:

This is a companion discussion topic for the original entry at


Hi Kirupa, I run the code below. But I get nothing in the browser body. Anything I am wrong? Thanks in advance.

<!DOCTYPE html>
  <title>React! React! React!</title>
  <script src="[email protected]/dist/react.js"></script>
  <script src="[email protected]/dist/react-dom.js"></script>
  <script src="[email protected]/babel.min.js"></script>
    #container {
      padding: 50px;
      background-color: #EEE;
    #container h1 {
      font-size: 144px;
      font-family: sans-serif;
      color: #0080a8;
  <div id="container"></div>
  <script type="text/babel">
    var destination = document.querySelector("#container");
    ), destination);


Looks like those unpkg links are broken


Yikes! I’ll update all of those articles shortly. The path you should use for the React libraries is:

<script crossorigin src="[email protected]/umd/react.development.js"></script>
<script crossorigin src="[email protected]/umd/react-dom.development.js"></script>

Edit: All of the articles should be updated with the latest version :slight_smile:


Really awesome, Kirupa. It works now! Thanks a lot.

Thanks Senocular as well.


You write so clearly! Thank you! I think it’s worth it to often look back at the basics of a build system. Getting too complex in so many directions too early on in the learning game can be very counter productive.