Building the web your way.
This update syncs with older versions.*
v4.2 introduces a new way of script tag variable manipulation, however the original method continues to function.
<div data="{count:0}">
<!-- Show count variable and call ad function onclick -->
<p react>{{count}}</p>
<button onclick="add()">+</button>
<script>
// Sno now automatically re-renders the reactive variables when they are modified with data.varName
function add(){
data.count++;
}
</script>
</div>