songstress/ui/server/jsx-runtime
The JSX of server code, which a file asks for with @jsxImportSource songstress/ui/server, where a handler is an action.
Server code renders a page in one pass, so none of songstress/ui's components can
take a function there: a handler is an action. A server file that draws JSX starts with
/** @jsxImportSource songstress/ui/server */, and then a function handler does not compile, while your own
components keep their function props. The elements are the same as client code's; only the JSX types differ. A
file without the line compiles with functions allowed, and the server refuses one when it renders (not-available).
It also exports, as the modules that declare them document them: Fragment, jsx, jsxs.
JSX
The JSX of server code: as client code's, but none of Songstress's components takes a function.
export declare namespace JSX {
type Element = ClientJSX.Element;
type ElementType = ClientJSX.ElementType;
type ElementChildrenAttribute = ClientJSX.ElementChildrenAttribute;
type IntrinsicAttributes = ClientJSX.IntrinsicAttributes;
type IntrinsicElements = ClientJSX.IntrinsicElements;
type LibraryManagedAttributes<Component, Props> = Component extends SdkComponent<never> ? {
[Name in keyof Props]: Exclude<Props[Name], (...args: never[]) => unknown>;
} : Props;
}Refers to SdkComponent.
It also exports, as the modules that declare them document them: Fragment, JSX, jsxDEV.