React 模板

<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<script src="js/react.js"></script>
<script src="js/react-dom.js"></script>
<script src="js/browser.min.js"></script>
</head>
<body>

<div id="example"></div>

<script type="text/babel">
ReactDOM.render(
<h1> Hello React </h1>,
document.getElementById('example')
);
</script>


</body>
</html>
posted @ 2017-08-09 09:12  ThisCall  阅读(610)  评论(0编辑  收藏  举报