Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)