Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/herber/morphist
⚡️🎭 [WIP] Tiny dom morphing library
https://github.com/herber/morphist
dom morphing vdom
Last synced: about 2 months ago
JSON representation
⚡️🎭 [WIP] Tiny dom morphing library
- Host: GitHub
- URL: https://github.com/herber/morphist
- Owner: herber
- License: mit
- Created: 2018-02-26T08:29:05.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-27T11:49:08.000Z (almost 7 years ago)
- Last Synced: 2024-04-16T01:08:50.704Z (10 months ago)
- Topics: dom, morphing, vdom
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# _[WIP]_ Morphist
A tiny dom morphing library
__Morphist__ diffs read dom nodes. We don't use a vdom, because the dom is really efficient at everything we need.
## Install
```
$ npm install morphist
```## Usage
```js
const morphist = require('morphist');
const bel = require('bel');const tree = html`
hello`;
document.body.appendChild(tree);morphist(tree, html`
hello world`);
```## Alternatives
- [Nanomorph](https://github.com/choojs/nanomorph)
- [Morphdom](https://github.com/patrick-steele-idem/morphdom)## License
MIT © [Tobias Herber](http://tobihrbr.com)