vtils

Home > react > createGlobalState

createGlobalState() function

Signature:

export declare function createGlobalState<S extends CreateGlobalStateState, R = never>(initialState: S, customResult?: CreateGlobalStateCustomResult<S, R>): CreateGlobalStateResult<S, R>;

Parameters

Parameter Type Description
initialState S  
customResult CreateGlobalStateCustomResult<S, R>  

Returns:

CreateGlobalStateResult<S, R>