@excentone/spfx-react
Version:
Contains custom ReactJs components and hooks intended to use when developing SharePoint Framework (SPFx) Web components.
10 lines (9 loc) • 400 B
TypeScript
import { Dispatch, SetStateAction } from "react";
export declare const useLocalStorage: <T>(key: string, initialValue: T) => [Partial<T>, {
setState: Dispatch<SetStateAction<Partial<T>>>;
resetState: () => void;
}];
export declare const useSessionStorage: <T>(key: string, initialValue: T) => [Partial<T>, {
setState: Dispatch<SetStateAction<Partial<T>>>;
resetState: () => void;
}];