# renderToReadableStream

**Kind:** Function

**Source:** [`src/jsx/streaming.ts`](https://github.com/honojs/hono/blob/main/src/jsx/streaming.ts#L146)

**Part of:** [Jsx](subsystem-src-jsx)

## Signature

```ts
function renderToReadableStream(content: HtmlEscapedString | JSXNode | Promise<HtmlEscapedString>, onError: (e: unknown) => string | void): ReadableStream<Uint8Array>
```

## Parameters

| Name | Type |
|---|---|
| `content` | `HtmlEscapedString | JSXNode | Promise<HtmlEscapedString>` |
| `onError` | `(e: unknown) => string | void` |

**Returns:** `ReadableStream<Uint8Array>`

## Used by

2 references from 2 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

### Imported by (2)

- `RenderToStringOptions` — `src/jsx/dom/server.ts`:11
- `RequestContext` — `src/middleware/jsx-renderer/index.ts`:14
