🚀 DAY 1 OF LAUNCH WEEK: Reachability for Ruby Now in Beta.Learn more →
Socket
Book a DemoInstallSign in
Socket

@rbxts/make-jsx

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rbxts/make-jsx

JSX version of Make

latest
Source
npmnpm
Version
0.3.1
Version published
Maintainers
0
Created
Source

make-jsx

To make it work you have to include these lines at the top of every file:

/** @jsx MakeJsx.createElement */
/** @jsxFrag MakeJsx.createElement */

and then include the MakeJsx import.

Example

const innerFrame = <frame></frame>

const gui = (
	<screenGui ScreenInsets={Enum.ScreenInsets.None} ResetOnSpawn={false}>
		<frame BackgroundTransparency={1} Size={UDim2.fromScale(1, 1)}>
			<uIAspectRatioConstraint AspectRatio={1}></uIAspectRatioConstraint>

			<uICorner CornerRadius={new UDim(1, 0)}></uICorner>

            {innerFrame}
		</frame>
	</screenGui>
);

Keywords

roblox

FAQs

Package last updated on 15 Oct 2024

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