1. <!DOCTYPE html>
    
  2. <html>
    
  3.   <head>
    
  4.     <meta charset="utf-8">
    
  5.     <title>Component Stacks</title>
    
  6.     <style>
    
  7.       html, body {
    
  8.         margin: 20px;
    
  9.       }
    
  10.       pre {
    
  11.         background: #eee;
    
  12.         border: 1px solid #ccc;
    
  13.         padding: 2px;
    
  14.       }
    
  15.     </style>
    
  16.   </head>
    
  17.   <body>
    
  18.     <div id="container">
    
  19.       <p>
    
  20.         To install React, follow the instructions on
    
  21.         <a href="https://github.com/facebook/react/">GitHub</a>.
    
  22.       </p>
    
  23.       <p>
    
  24.         If you can see this, React is <strong>not</strong> working right.
    
  25.         If you checked out the source from GitHub make sure to run <code>npm run build</code>.
    
  26.       </p>
    
  27.     </div>
    
  28.     <script src="../../build/oss-experimental/react/umd/react.production.min.js"></script>
    
  29.     <script src="../../build/oss-experimental/react-dom/umd/react-dom.production.min.js"></script>
    
  30.     <script src="./Components.js"></script>
    
  31.     <script src="./BabelClasses-compiled.js"></script>
    
  32.     <script src="./Example.js"></script>
    
  33.     <script>
    
  34.       const container = document.getElementById("container");
    
  35.       ReactDOM.render(React.createElement(Example), container);
    
  36.     </script>
    
  37.     <h3>The above stack should look something like this:</h3>
    
  38.     <pre>
    
  39.     at Lazy
    
  40.     at Component (/stacks/Component.js:7:1)
    
  41.     at div
    
  42.     at Suspense
    
  43.     at BabelClassWithFields (/stacks/BabelClasses-compiled.js:31:31)
    
  44.     at BabelClass (/stacks/BabelClass-compiled.js:13:29)
    
  45.     at FrozenClass (/stacks/Components.js:22:1)
    
  46.     at NativeClass (/stacks/Component.js:16:1)
    
  47.     at SuspenseList
    
  48.     at Custom Name (/stacks/Component.js:11:1)
    
  49.     at ErrorBoundary (/stacks/Example.js:5:1)
    
  50.     at Example (/stacks/Example.js:32:1)</pre>
    
  51.   </body>
    
  52. </html>