react/fixtures/packaging/requirejs/prod.html

21 lines
624 B
HTML

<html>
<body>
<script src="https://unpkg.com/requirejs@2.3.2/require.js"></script>
<div id="container"></div>
<script>
requirejs.config({
paths: {
react: '../../../build/oss-experimental/react/umd/react.production.min',
'react-dom': '../../../build/oss-experimental/react-dom/umd/react-dom.production.min'
}
});
require(['react', 'react-dom'], function(React, ReactDOM) {
ReactDOM.render(
React.createElement('h1', null, 'Hello World!'),
document.getElementById('container')
);
});
</script>
</body>
</html>