Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Mox-js/Mox-js
https://github.com/Mox-js/Mox-js
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/Mox-js/Mox-js
- Owner: Mox-js
- Created: 2021-03-15T10:46:16.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-03-17T08:39:28.000Z (over 3 years ago)
- Last Synced: 2024-08-02T13:29:36.890Z (4 months ago)
- Language: JavaScript
- Size: 62.5 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-luooooob - Mox-js/Mox-js - (JavaScript)
README
# Mox.js
一个极简的声明式 JavaScript UI 框架。
引入 src 文件后,简单几行代码即可创建响应式、声明式的 UI
```javascript
const app = State((state) => () => {
const times = state(0);
return Flex(
Div(times.value),
Div("click me").on("click", (times.value = times.value - 1))
).flexFlow("column");
});new Mox().Render("app", app);
```