mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
* Delete addons * Remove ReactFragment dependency from tests * Remove addons testing from fixtures * Don't mention createFragment() in a warning * Address feedback * Remove unused variables * Remove mention of deleted file * Add a missing key to the test * Fix lint
27 lines
653 B
HTML
27 lines
653 B
HTML
<html>
|
|
<body>
|
|
<script src="https://unpkg.com/systemjs@0.19.41/dist/system.js"></script>
|
|
<div id="container"></div>
|
|
<script>
|
|
System.config({
|
|
paths: {
|
|
react: '../../build/react.js',
|
|
'react-dom': '../../build/react-dom.js'
|
|
}
|
|
});
|
|
|
|
Promise.all([
|
|
System.import("react"),
|
|
System.import("react-dom")
|
|
]).then(function (deps) {
|
|
var React = deps[0];
|
|
var ReactDOM = deps[1];
|
|
|
|
ReactDOM.render(
|
|
React.createElement('h1', null, 'Hello World!'),
|
|
document.getElementById('container')
|
|
);
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |