Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 591 Bytes

README.md

File metadata and controls

30 lines (18 loc) · 591 Bytes

HTML render

HTMLElement render method with incremental DOM update

Include

The following adds a render method to HTMLElement.

require('html-render');

Use

var app = document.body.querySelector('app-root');

app.render( html );
app.render( newHtml );

This updates the DOM efficiently by rendering only the difference.

Based on

Incremental DOM

html-parse-stringify

html2IDOM (light version)