A view management library for Roblox Lua similar to React
625
stars
465
commits
Lua
primary language
Dec 13, 2023
updated
This repository is deprecated and no longer maintained.
See react-lua for our currently maintained React in Lua library.
rbxm model file attached to the latest release from the GitHub releases page.ReplicatedStoragesrc directory into your codebaseRoactFor a detailed guide and examples, check out the official Roact documentation.
local LocalPlayer = game:GetService("Players").LocalPlayer
local Roact = require(Roact)
-- Create our virtual tree describing a full-screen text label.
local tree = Roact.createElement("ScreenGui", {}, {
Label = Roact.createElement("TextLabel", {
Text = "Hello, world!",
Size = UDim2.new(1, 0, 1, 0),
}),
})
-- Turn our virtual tree into real instances and put them in PlayerGui
Roact.mount(tree, LocalPlayer.PlayerGui, "HelloWorld")
Roact is available under the Apache 2.0 license. See LICENSE.txt for details.
(top 30 of 32)
Lua
99.8%
A view management library for Roblox Lua similar to React
625
stars
465
commits
Lua
primary language
Dec 13, 2023
updated
This repository is deprecated and no longer maintained.
See react-lua for our currently maintained React in Lua library.
rbxm model file attached to the latest release from the GitHub releases page.ReplicatedStoragesrc directory into your codebaseRoactFor a detailed guide and examples, check out the official Roact documentation.
local LocalPlayer = game:GetService("Players").LocalPlayer
local Roact = require(Roact)
-- Create our virtual tree describing a full-screen text label.
local tree = Roact.createElement("ScreenGui", {}, {
Label = Roact.createElement("TextLabel", {
Text = "Hello, world!",
Size = UDim2.new(1, 0, 1, 0),
}),
})
-- Turn our virtual tree into real instances and put them in PlayerGui
Roact.mount(tree, LocalPlayer.PlayerGui, "HelloWorld")
Roact is available under the Apache 2.0 license. See LICENSE.txt for details.
(top 30 of 32)
Lua
99.8%