New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@rbxts/react-internal

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rbxts/react-internal

React is a library for creating user interfaces.

  • 0.2.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
22
increased by266.67%
Maintainers
1
Weekly downloads
 
Created
Source

react

React is a library for creating user interfaces.

The react package contains only the functionality necessary to define React components. It is typically used together with a React renderer like react-roblox.

Usage

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

local e = React.createElement
local useState = React.useState

local function Counter()
    local count, setCount = useState(0)

    return e("Frame", {}, {
        CurrentCount = e("TextLabel", {
            Text = count,
            ...
        }),
        IncrementButton = e("TextButton", {
            Text = "Increment",
            ...,

            [React.Event.Activated] = function()
                setCount(count + 1)
            end
        })
    })
end

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

Documentation

See https://react.dev/

API

See https://react.dev/reference/react

FAQs

Package last updated on 12 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc