Strictly typed reactive UI library for Luau and Roblox. Batches updates once per frame so only changed properties write to the engine, and puts unread state to sleep with zero idle cost.
local count = Flux(0)
Flux.new "ScreenGui" {
Parent = playerGui,
Flux.new "TextButton" {
Size = UDim2.fromOffset(200, 50),
Text = function() return `Clicks: {count}` end,
Activated = function() count(count + 1) end,
},
}