Permalink
Switch branches/tags
Nothing to show
Find file Copy path
479765c May 4, 2017
2 contributors

Users who have contributed to this file

@ruanyf @ReedSun
22 lines (21 sloc) 501 Bytes
<!DOCTYPE html>
<html>
<head>
<script src="../build/react.js"></script>
<script src="../build/react-dom.js"></script>
<script src="../build/browser.min.js"></script>
</head>
<body>
<div id="example"></div>
<script type="text/babel">
var arr = [
<h1 key="1">Hello world!</h1>,
<h2 key="2">React is awesome</h2>,
];
ReactDOM.render(
<div>{arr}</div>,
document.getElementById('example')
);
</script>
</body>
</html>