diffhtml

Build JavaScript components and apps using a Virtual DOM

Usage no npm install needed!

<script type="module">
  import diffhtml from 'https://cdn.skypack.dev/diffhtml';
</script>

README

<±/> diffHTML

The foundation and core of the diffHTML ecosystem. Parses HTML, reconciles changes, applies middleware, handles transitions, and keeps the DOM in sync.

Latest version: 1.0.0-beta.22

Refer to the website https://diffhtml.org/ for documentation.

Installation

npm i --save diffhtml

Simple example

Render "Hello world" to the screen:

import { innerHTML } from 'diffhtml';

innerHTML(document.body, `
  <div>Hello world</div>
`);