createNamedContext
import { createNamedContext } from "@alloy-js/core";
function createNamedContext<T>(name: string, defaultValue?: T): ComponentContext<T>;
Parameters
name |
|
defaultValue | optional
|
Returns
ComponentContext<T>
import { createNamedContext } from "@alloy-js/core";
function createNamedContext<T>(name: string, defaultValue?: T): ComponentContext<T>;
name |
|
defaultValue | optional
|
ComponentContext<T>