通过模仿 preact 的源码,写一个类似 react 的框架。
- 解析 JSX,一次性渲染到页面中,详见 examples/basic
- extend Component
- vDOM diff
npm i
npm run build在 examples 各个子文件夹内会生成 bundle.js 文件,打开 index.html 便能运行例子。
| Name | Name | Last commit date | ||
|---|---|---|---|---|
通过模仿 preact 的源码,写一个类似 react 的框架。
npm i
npm run build在 examples 各个子文件夹内会生成 bundle.js 文件,打开 index.html 便能运行例子。