Files
react/fixtures/packaging/systemjs/dev.html
Sebastian Markbåge db5e6250d4 Rename yarn build-combined to just yarn build (#26192)
It's confusing to new contributors, and me, that you're supposed to use
`yarn build-combined` for almost everything but not fixtures.

We should use only one build command for everything.

Updated fixtures to use the folder convention of build-combined.
2023-02-17 16:00:18 -05:00

27 lines
741 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/oss-experimental/react/umd/react.development.js',
'react-dom': '../../../build/oss-experimental/react-dom/umd/react-dom.development.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>