Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 815 Bytes

README.md

File metadata and controls

33 lines (26 loc) · 815 Bytes

# Snoflake

v3 Building the web your way.

Snojs; truly reactive...

<body data='{"count":0]}'>
  <p react>{{count}}</p>
  <button onclick='$("count++;")'>+</button>
  <script src="./sno.js"></script>
</body>

Changelog

Click functions are much more functional.

<!-- Original way: it fails on low power devices -->
<button click="count++;">+</button>
<!-- New way: it functions on older devices-->
<button onclick='$("count++;")'>+</button>

REAL REACTIVITY.

<!-- In old sno it updates every millisecond-->
<p react>{{count}}</p>
<!-- In NEW sno it only updates on value change-->

This reactivity also applies to any other function such as bind, for, if etc.
Outdated functions removed: save(), retrieve()