5
GitHub - aidenybai/tiny-vdom: 🤏 Smallest possible virtual DOM implementation
source link: https://github.com/aidenybai/tiny-vdom
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
tiny-vdom
Smallest possible virtual DOM implementation.
Note: If you're looking for something a bit more comprehensive, check out Million
Installation
npm install tiny-vdom
Usage
index.js
import { h, createElement, patch } from 'tiny-vdom'; const el = createElement(h('div')); patch(el, h('div', null, 'Hello World!'), h('div'));
License
tiny-vdom
is MIT-licensed open-source software by Aiden Bai.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK