Effection Logo

function createContext

thefrontside/effection

function createContext<T>(name: string, defaultValue?: T): Context<T>

Create a new Context

Type Parameters

T

Parameters

name: string

  • the unique name to give this context.

defaultValueoptional: T

Return Type

Context<T>

the new context