@rbxts/react-roblox-internal
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @rbxts/react-roblox-internal

Weekly Downloads

0

Version

0.2.0

License

MIT

Unpacked Size

111 kB

Total Files

18

Last publish

Collaborators

  • littensy