Home > react > createGlobalState
Signature:
export declare function createGlobalState<S extends CreateGlobalStateState, R = never>(initialState: S, customResult?: CreateGlobalStateCustomResult<S, R>): CreateGlobalStateResult<S, R>;
Parameter | Type | Description |
---|---|---|
initialState | S | |
customResult | CreateGlobalStateCustomResult<S, R> |
Returns:
CreateGlobalStateResult<S, R>