Package Exports
- @rbxts/make-jsx
- @rbxts/make-jsx/src/init.luau
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rbxts/make-jsx) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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>
);