0.0.1-beta.11 • Published 27 days ago

@doublemx2/renditional v0.0.1-beta.11

Weekly downloads
-
License
ISC
Repository
github
Last release
27 days ago

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...

0.0.1-beta.11

27 days ago

0.0.1-beta.10

5 months ago

0.0.1-beta.9

6 months ago

0.0.1-beta.8

6 months ago

0.0.1-beta.7

6 months ago

0.0.1-beta.6

6 months ago

0.0.1-beta.5

6 months ago

0.0.1-beta.4

6 months ago

0.0.1-beta.3

6 months ago

0.0.1-beta.2

6 months ago

0.0.1-beta.1

6 months ago