@lynx-js/react / createContext
Lets you create a Context that components can provide or read.
| Type Parameter |
|---|
T |
| Parameter | Type | Description |
|---|---|---|
defaultValue | T | The value you want the context to have when there is no matching Provider in the tree above the component reading the context. This is meant as a "last resort" fallback. |
Context<T>
.pnpm/@types+react@18.3.11/node_modules/@types/react/ts5.0/index.d.ts:775