vUXDocs v4.1.0

Introduction

vUX is a dependency-free UI library for the browser, written in plain ES6 modules. You import the modules you need straight from a <script type="module">, with no build step, no bundler and no package manager.

What you get

vUX covers three kinds of work:

How it is different

  • Your markup stays yours. Components are ordinary elements carrying your classes, styled by your stylesheet. Nothing is hidden in a shadow root, and document.querySelector reaches everything.
  • Nothing re-renders. A binding is written when its value changes, and nothing happens in between. There is no virtual DOM and no scheduler. See vUX and React for how the ideas map.
  • Mistakes throw early. Every constructor, method and config property checks its argument and throws an error that names the method and says what it expected.
  • One way to drive every module. Create it with new, set .config, call initialize(), and call destroy() when it goes. See Lifecycle and teardown.

Where to go next

  1. Installation: add vUX to a page.
  2. Your first component: build a small component from your own markup.
  3. Examples: every module running live.