@doublemx2/renditional

0.0.1-beta.11 • Public • Published

renditional

Renditional is a JavaScript library for creating user interfaces.

Renditional focuses on pushing updates as deep in the templates as possible. If a piece of text changes based on some reactive state, then only that text will be re-rendered when the state changes.

Updates in Renditional are driven by automatically-tracked dependencies. See the specific APIs for what supports automatic tracking. When a tracked dependency updates, it may trigger some update in the UI.

Usage

import { render, el, on, ref, text } from '@doublemx2/renditional';

function Counter () {
    const count = ref(0);

    return [
        el.h1(
            text(() => count.current.toString()),
        ),
        el.button(
            on.click(() => count.current += 1),
            "Increment",
        ),
    ]
}

render(document.getElementById("root"), Counter())

Documentation and API

Coming soon...

Dependents (0)

Package Sidebar

Install

npm i @doublemx2/renditional

Weekly Downloads

1

Version

0.0.1-beta.11

License

ISC

Unpacked Size

28.1 kB

Total Files

4

Last publish

Collaborators

  • doublemx2