vtils

Home > react > createGlobalState

createGlobalState() function

Signature:

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

Parameters

Parameter Type Description
customResult CreateGlobalStateCustomResult<S, R> (Optional)

Returns:

CreateGlobalStateResult<S | undefined, R>