0.2.0 • Published 2 years ago

@rbxts/react-roblox-internal v0.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

react-roblox

This package serves as a Roblox renderer for React. It is intended to be paired with the generic React package, which is shipped as core-packages/react to Wally.

Usage

local React = require(Path.To.React)
local ReactRoblox = require(Path.To.ReactRoblox)

local function App()
    return React.createElement("TextLabel", {
        Text = "Hello, world!"
    })
end

local element = React.createElement(App)

local root = ReactRoblox.createRoot(Instance.new("Folder"))
root:render(ReactRoblox.createPortal(element, playerGui))

API

TODO