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> | (Optional) |
Returns:
CreateGlobalStateResult<S, R>