Function: createContext()
createContext<
T>(defaultValue):Context<T>
Defined in: src/sdk/components/FSComponent.ts:804
Creates a new context to hold data for passing to child components.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type | Description |
|---|---|---|
defaultValue | T | The default value of this context. |
Returns
Context<T>
A new context.