Skip to content

Sainan/lua-reactivity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Usage

require "reactivity"

Create a new reactive variable

initreactive("counter", 0, function(value)
    print("Counter changed to "..value)
end)

print(counter) --> 0
counter = counter + 1 --> Counter changed to 1

Make an existing variable reactive

counter = 0

makereactive("counter", function(value)
    print("Counter changed to "..value)
end)

print(counter) --> 0
counter = counter + 1 --> Counter changed to 1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages