ui-io
v1.4.1
Published
Data driven web user interface library
Downloads
2
Readme
Data driven web user interface library
ui-io
is a library for connecting data to HTML or SVG user interfaces.
import { HTML, Data } from "ui-io";
// attach to a document and get element factories:
const { h1, div } = HTML(document);
document.body.append(
// create an h1 element, and add content to it:
h1("Hello world!"),
// Data tracks changes to an item of data:
div(Data.periodic(Date, 1000))
);
See https://davidb.uk/ui-io for more live and editable examples!