SaturJs
A lightweight web library that combines the best of server-side rendering and client-side state management.
A lightweight web library that combines the best of server-side rendering and client-side state management.
SaturJs created by Madhanmaaz
<template>
<div>
<h1>Counter: {{ count }}</h1>
<button class="button" onclick="changeValue(1)">Increment</button>
<button class="button" onclick="changeValue(-1)">Decrement</button>
</div>
</template>
<script>
var state = defProxy({
count: 0
})
defEvents({
changeValue(e, value) {
state.count += value
}
})
</script>