# createContext

**Kind:** Function

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

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

## Signature

```ts
function createContext(defaultValue: T): Context<T>
```

## Parameters

| Name | Type |
|---|---|
| `defaultValue` | `T` |

**Returns:** `Context<T>`

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

- `FormContext` — `src/jsx/dom/hooks/index.ts`:24
- `HasRenderToDom` — `src/jsx/dom/render.ts`:30
