# createPortal

**Kind:** Function

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

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

## Signature

```ts
function createPortal(children: Child, container: HTMLElement, key: string): Child
```

## Parameters

| Name | Type |
|---|---|
| `children` | `Child` |
| `container` | `HTMLElement` |
| `key` | `string` |

**Returns:** `Child`

## Used by

1 reference from 1 file. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

### Imported by (1)

- `clearCache` — `src/jsx/dom/intrinsic-element/components.ts`:18
