Vide is a reactive Luau UI library inspired by Solid.
Read the crash course for a quick introduction to the library.
local create = vide.create
local source = vide.source
local function Counter()
local count = source(0)
return create "TextButton" {
Text = function()
return "count: " .. count()
end,
Activated = function()
count(count() + 1)
end
}
end