JSPM

  • Created
  • Published
  • Downloads 183
  • Score
    100M100P100Q84038F
  • License MIT

Build JavaScript components and apps using a Virtual DOM

Package Exports

  • diffhtml
  • diffhtml/dist/cjs
  • diffhtml/dist/cjs/index.js
  • diffhtml/dist/cjs/lite
  • diffhtml/dist/cjs/lite.js
  • diffhtml/dist/cjs/tree/create
  • diffhtml/dist/cjs/tree/create.js
  • diffhtml/dist/es/index.js
  • diffhtml/lib
  • diffhtml/lib/index.js
  • diffhtml/lite
  • diffhtml/lite.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (diffhtml) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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.30

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>
`);