vtils

Home > react > useLocalStorage

useLocalStorage() function

Signature:

export declare function useLocalStorage<S>(key: string, initialState: S): UseLocalStorageResult<S>;

Parameters

Parameter Type Description
key string  
initialState S  

Returns:

UseLocalStorageResult<S>