Skip to main content

utils/GlobalStateProvider

Functions

GlobalStateProvider()

GlobalStateProvider(__namedParameters): Element

Parameters

__namedParameters

__namedParameters.children: ReactNode

Returns

Element


useGlobalState()

useGlobalState\<T>(__namedParameters): [T, (valueOrSetterFn) => void]

Type Parameters

T

Parameters

__namedParameters

__namedParameters.defaultValue: T

__namedParameters.key: Key

Returns

[T, (valueOrSetterFn) => void]