Skip to content

Commit

Permalink
docs: add tiny-vdom attribution
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenybai committed Oct 8, 2021
1 parent 215a638 commit 6da6a1a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions benchmarks/tiny-vdom/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
> _Adapted from [aidenybai/tiny-vdom](https://github.com/aidenybai/tiny-vdom) to support Million-based vnodes_
---

# `tiny-vdom`

Smallest possible virtual DOM implementation.

> Note: If you're looking for something a bit more comprehensive, check out [Million](https://github.com/aidenybai/million)
## Installation

```sh
npm install tiny-vdom
```

## Usage

`index.js`

```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](LICENSE) open-source software by [Aiden Bai](https://github.com/aidenybai).

0 comments on commit 6da6a1a

Please sign in to comment.