Home > @findkit/ui > PreactFunctions > createContext
PreactFunctions.createContext() method
Signature:
createContext<T>(this: void, defaultValue: T): Context<T>;
Parameters
Parameter | Type | Description |
---|---|---|
this | void | |
defaultValue | T |
Returns:
Context<T>