UNPKG

react-storage-complete

Version:

🗄️ React hooks for accessing localStorage and sessionStorage, with syncing and prefix support. The complete package.

14 lines (13 loc) 520 B
import 'bootstrap/dist/css/bootstrap.css'; import React from 'react'; import { DivProps } from 'react-html-props'; import { useLocalStorage } from '../hooks/useLocalStorage'; type StorageHook = typeof useLocalStorage; export interface LocalStorageExampleProps<T = any> extends DivProps { useStorage: StorageHook; } /** * This is the description for the LocalStorageExample component */ export declare const LocalStorageExample: ({ useStorage, ...props }: LocalStorageExampleProps) => React.JSX.Element; export {};