Skip to main content

Function: useSyncState()

function useSyncState<T>(initialState, key): readonly [any, (newState) => void]

Type Parameters

Type Parameter
T

Parameters

ParameterType
initialStateT
key(null | string)[]

Returns

readonly [any, (newState) => void]