Skip to content

A lightweight UI framework for declarative DOM manipulation, alternative to React, Vue and jQuery for small projects.

License

Notifications You must be signed in to change notification settings

blinkblinkhq/echox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5c28e6c Β· Mar 28, 2025
Feb 3, 2025
Mar 28, 2025
Mar 28, 2025
Mar 28, 2025
Jan 30, 2025
Jan 20, 2025
Jan 20, 2025
May 28, 2024
Mar 28, 2025
Feb 24, 2025
Feb 23, 2025
Jan 20, 2025
Jan 30, 2025
Jan 20, 2025

Repository files navigation

EchoX: UI = f(DOM, Reactive)

Note

Work in progress. The APIs are not stable right now.

A lightweight reactive UI framework for declarative DOM manipulation, alternative to React, Vue and jQuery for small projects.

import {html, reactive} from "echox";

const [state] = reactive()
  .state("value", 0)
  .computed("double", (d) => d.value * 2)
  .effect((d) => console.log(d.value, d.double))
  .join();

const counter = html.div([
  html.button({onclick: () => state.value++}, ["πŸ‘"]),
  html.button({onclick: () => state.value--}, ["πŸ‘Ž"]),
  html.span([() => state.double]),
]);

document.body.appendChild(counter);

Resources πŸ“š

License πŸ“„

MIT@Bairui SU

About

A lightweight UI framework for declarative DOM manipulation, alternative to React, Vue and jQuery for small projects.

Resources

License

Stars

Watchers

Forks