require "reactivity"
initreactive("counter", 0, function(value)
print("Counter changed to "..value)
end)
print(counter) --> 0
counter = counter + 1 --> Counter changed to 1
counter = 0
makereactive("counter", function(value)
print("Counter changed to "..value)
end)
print(counter) --> 0
counter = counter + 1 --> Counter changed to 1