SkillAgentSearch skills...

Roact

A view management library for Roblox Lua similar to React

Install / Use

/learn @Roblox/Roact
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

This repository is deprecated and no longer maintained.

See react-lua for our currently maintained React in Lua library.

<h1 align="center">Roact</h1> <div align="center"> <a href="https://github.com/Roblox/roact/actions"><img src="https://github.com/Roblox/roact/workflows/CI/badge.svg" alt="GitHub Actions Build Status" /></a> <a href="https://coveralls.io/github/Roblox/roact?branch=master"><img src="https://coveralls.io/repos/github/Roblox/roact/badge.svg?branch=master" alt="Coveralls Coverage" /></a> <a href="https://roblox.github.io/roact"><img src="https://img.shields.io/badge/docs-website-green.svg" alt="Documentation" /></a> </div> <div align="center"> A declarative UI library for Roblox Lua inspired by <a href="https://reactjs.org">React</a>. </div> <div>&nbsp;</div>

Installation

Method 1: Model File (Roblox Studio)

  • Download the rbxm model file attached to the latest release from the GitHub releases page.
  • Insert the model into Studio into a place like ReplicatedStorage

Method 2: Filesystem

  • Copy the src directory into your codebase
  • Rename the folder to Roact
  • Use a plugin like Rojo to sync the files into a place

Documentation

For 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")

License

Roact is available under the Apache 2.0 license. See LICENSE.txt for details.

View on GitHub
GitHub Stars615
CategoryDevelopment
Updated7d ago
Forks140

Languages

Lua

Security Score

100/100

Audited on Mar 24, 2026

No findings