main
html 27 lines 741 Bytes
Raw
1 <html>
2 <body>
3 <script src="https://unpkg.com/systemjs@0.19.41/dist/system.js"></script>
4 <div id="container"></div>
5 <script>
6 System.config({
7 paths: {
8 react: '../../../build/oss-experimental/react/umd/react.development.js',
9 'react-dom': '../../../build/oss-experimental/react-dom/umd/react-dom.development.js'
10 }
11 });
12
13 Promise.all([
14 System.import("react"),
15 System.import("react-dom")
16 ]).then(function (deps) {
17 var React = deps[0];
18 var ReactDOM = deps[1];
19
20 ReactDOM.render(
21 React.createElement('h1', null, 'Hello World!'),
22 document.getElementById('container')
23 );
24 });
25 </script>
26 </body>
27 </html>