Library to build UI based on virtual DOM
JavaScript Other

README.md

vidom

Build Status NPM Version Dependencies NPM Downloads

Vidom is just a library to build UI. It's highly inspired and based on ideas from React. Its main goal is to provide as fast as possible lightweight implementation with API similar to React. According to the corresponding benchmarks Vidom is 6x faster in Chrome, 5x faster in Firefox, 2x faster in IE and up to 12x faster in server-side rendering than React.

Main features

  • Fast virtual DOM builder and patcher under the hood
  • Fast server-side rendering with ability to reuse existing DOM in the browsers also known as isomorphism.
  • Easy and clear way to subscribe to DOM Events
  • API to build your own high-level components
  • Namespaces support (e.g., SVG, MathML)
  • Ability to render multiple components without unwanted DOM wrappers
  • No extra markup in the result HTML
  • JSX support via babel plugin
  • Small footprint, 9KB after gzip
  • Zero dependencies

Benchmarks

                  mean time ops/sec
  vidom v0.6.2    1.075ms   930
  preact v7.1.0   2.254ms   444
  inferno v1.1.2  2.325ms   430
  react v15.4.2   14.625ms  68

Documentation

Tools

  • Vidom inspector developer tool which helps debug vidom-based applications

Addons

Examples

Thanks

  • cdnjs for library is avalaible on CDN.