0.3.1 • Published 9 months ago

@rbxts/make-jsx v0.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

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>
);
0.3.1

9 months ago

0.3.0

9 months ago

0.2.0

10 months ago

0.1.1

10 months ago

0.1.0

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago