This_Wei

Come on!

Preact 快速开始

代码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Preact 快速开始</title>
<script src="preact.min.js"></script>
</head>
<body>
<div id="app"></div>
</body>
<script>
const app = preact.h('h1', null, 'hello world');
preact.render(app, document.getElementById('app'));
</script>
</html>

效果

0%