This repository was archived by the owner on Dec 13, 2023. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork139
A view management library for Roblox Lua similar to React
License
NotificationsYou must be signed in to change notification settings
Roblox/roact
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This repository is deprecated and no longer maintained.
Seereact-lua for our currently maintained React in Lua library.
A declarative UI library for Roblox Lua inspired byReact.
- Download the
rbxm
model file attached to the latest release from theGitHub releases page. - Insert the model into Studio into a place like
ReplicatedStorage
- Copy the
src
directory into your codebase - Rename the folder to
Roact
- Use a plugin likeRojo to sync the files into a place
For a detailed guide and examples, check outthe official Roact documentation.
localLocalPlayer=game:GetService("Players").LocalPlayerlocalRoact=require(Roact)-- Create our virtual tree describing a full-screen text label.localtree=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 PlayerGuiRoact.mount(tree,LocalPlayer.PlayerGui,"HelloWorld")
Roact is available under the Apache 2.0 license. SeeLICENSE.txt for details.
About
A view management library for Roblox Lua similar to React
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published