# 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.

Page: https://songstress.app/docs/develop/reference/server-jsx-runtime/

Server code renders a page in one pass, so none of [`songstress/ui`](/docs/develop/reference/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](/docs/develop/reference/jsx-runtime/#type-Fragment), [jsx](/docs/develop/reference/jsx-runtime/#type-jsx), [jsxs](/docs/develop/reference/jsx-runtime/#type-jsxs).

### JSX

The JSX of server code: as client code's, but none of Songstress's
components takes a function.

```ts
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](/docs/develop/reference/ui/#type-SdkComponent).

It also exports, as the modules that declare them document them: [Fragment](/docs/develop/reference/jsx-runtime/#type-Fragment), [JSX](/docs/develop/reference/jsx-runtime/#type-JSX), [jsxDEV](/docs/develop/reference/jsx-runtime/#type-jsxDEV).
