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