点击查看html编辑器说明文档

React18 演示edit icon

|
|
Fork(复制)
|
|
作者:
用户fkxIv10
提交反馈
嵌入
设置
下载
HTML
格式化
支持Emmet,输入 p 后按 Tab键试试吧!
<head> ...
展开
</head>
<body>
<!-- 引入 react 18.2 -->
<script src="https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-y/react/18.2.0/umd/react.development.min.js"></script>
<script src="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-y/react-dom/18.2.0/umd/react-dom.development.min.js"></script>

<div id="app"></div>

</body>
CSS
格式化
html {
  height: 100%;
}
body {
  height: 100%;
  background: #212121;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
JS
格式化
const root = ReactDOM.createRoot(document.getElementById('app'));
root.render(<h1>Hello, React 18!</h1>);
预览
控制台