Documentation
On this page

Function · JSX Runtime

jsx

Creates one GUI element for the automatic JSX production transform.

@sharpts/gui · SharpTS 572a2e31be0e

Signature

TypeScript
jsx(type: any, props: any, key?: any): GuiElement

Parameters

NameTypeDescription
typeanyFunction component or native GUI control tag.
propsanyProperties and children supplied to the element.
key optionalanyOptional reconciliation key supplied by the JSX transform.

Returns

GuiElement — The immutable GUI element consumed by the desktop renderer.

Source

src/SharpTS.Gui.Sdk/GuiPackage/jsx-runtime.ts:14 at SharpTS revision 572a2e31be0e2a09be0138bc44501b34d6245b51.