diffHTML

v1.0.0-beta.17

An easy-to-use Virtual DOM built for the web!


Welcome to diffHTML! A lightweight library for creating fast and reactive user interfaces using JavaScript. With diffHTML you can create applications, games, data visualizations, and much more in you web browser.

Here's a simple example to show what it's all about:

import { innerHTML } from '//diffhtml.org/es';

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


Core features


Getting started

Package manager

Script tag

<script src="https://unpkg.com/diffhtml/dist/diffhtml.min.js"></script>
<script>console.log(window.diff);</script>

ES modules

You can import diffHTML directly over HTTP using the ES modules syntax. This is a new feature that isn't available in all browsers yet, but you can use them safely in nearly all modern browsers .

import { innerHTML } from 'https://unpkg.com/diffhtml?module';
// or
import { innerHTML } from 'https://diffhtml.org/es';


Examples

Hello World

Clock

Hacker News

TodoMVC

Edit on GitHub