moonview
v0.0.0
Published
4KB alternative to Vue.js
Downloads
3
Readme
Moonview
Like Vue.js but without all the legacy stuff.
Install
yarn add moonview
Usage
import { h, component, render, ref } from 'moonview'
const Counter = component({
setup() {
const count = ref(0)
const increment = () => count.value++
return {
count,
increment,
}
},
render(context) {
return <button onClick={context.increment}>{context.count}</button>
},
})
render(<Counter />, '#app')
License
MIT © EGOIST