@x.srm/bindjs
v0.0.3
Published
A minimalist, reactive JavaScript UI framework.
Downloads
5
Readme
bindjs - a library that shouldn't exist
Introduction
bindjs is a lightweight library for building reactive websites, featuring a built-in router, image/SVG caching, and a state management mechanism.
Usage
creating elements:
import {ce} from "bindjs/native"
ce(<tagName>, <attributes>)or
import html from "bindjs/native"
const { div } = html
div(<className>, <textContent>, <attributes>)example:
import html, {query} from "bindjs/native"
const { div } = html
const handleClick = ()=> alert("hello world")
query("body").append(
div("randomClass", "Halo", {onclick: handleClick}).add(
div("child", "halo again"),
div("child 2", "halo again")
)
)