https://github.com/lovetingyuan/asnow
A simple UI library(WIP).
https://github.com/lovetingyuan/asnow
Last synced: 3 months ago
JSON representation
A simple UI library(WIP).
- Host: GitHub
- URL: https://github.com/lovetingyuan/asnow
- Owner: lovetingyuan
- Created: 2018-04-20T10:49:06.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T17:19:56.000Z (over 2 years ago)
- Last Synced: 2025-03-07T16:48:49.523Z (4 months ago)
- Language: TypeScript
- Homepage:
- Size: 3.56 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## asnow
A simple UI library(WIP).
example:
```javascript
import { render, update } from 'asnow'class HelloWorld {
static template = `
Hello world
`
}class Counter {
constructor (props) {
this.count = props.init || 0
}
static components = { HelloWorld }
static template = `
Counter: { count } add
`
onAdd () {
update(this, {
count: this.count + 1
})
}
}render(Counter, '#app')
```