GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Roblox/roact: A view management library for Roblox Lua similar to React

This repository was archived by the owner on Dec 13, 2023. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

468 Commits
468 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
benchmarks
benchmarks
 
 
bin
bin
 
 
docs
docs
 
 
examples
examples
 
 
modules
modules
 
 
src
src
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
.luacov
.luacov
 
 
.luaurc
.luaurc
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
benchmarks.project.json
benchmarks.project.json
 
 
default.project.json
default.project.json
 
 
foreman.toml
foreman.toml
 
 
mkdocs.yml
mkdocs.yml
 
 
place.project.json
place.project.json
 
 
rotriever.toml
rotriever.toml
 
 
selene.toml
selene.toml
 
 
testez.d.lua
testez.d.lua
 
 
testez.toml
testez.toml
 
 
wally.toml
wally.toml
 
 

Repository files navigation

This repository is deprecated and no longer maintained.

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

Roact

GitHub Actions Build Status Coveralls Coverage Documentation
A declarative UI library for Roblox Lua inspired by React.
 

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.

About

A view management library for Roblox Lua similar to React

roblox.github.io/roact

Topics

luareactrobloxui

Resources

Readme
Apache-2.0 license

Contributing

Contributing
Activity
Custom properties

Stars

624 stars

Watchers

4 watching

Forks

141 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.