<!-- 引入 react@16.14 -->
<script src="https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/react/16.14.0/umd/react.development.min.js" type="application/javascript"></script>
<script src="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/react-dom/16.14.0/umd/react-dom.development.min.js" type="application/javascript"></script>
<div id="app"></div>
HTML
格式化
支持Emmet,输入 p 后按 Tab键试试吧!
<head> ... </head>
<body>
</body>
html {
height: 100%;
}
body {
height: 100%;
background: #212121;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
}
ReactDOM.render(
<h1>Hello, React 16!</h1>,
document.getElementById('app')
);
预览
控制台