use-local-storage-state
Advanced tools
Comparing version 0.3.5 to 0.4.0
import { Dispatch, SetStateAction } from 'react'; | ||
export default function useLocalStorageState<T>(key: string, defaultValue: T): [T, Dispatch<SetStateAction<T>>]; | ||
export default function useLocalStorageState<T>(key: string, defaultValue?: T): [T, Dispatch<SetStateAction<T>>]; |
{ | ||
"name": "use-local-storage-state", | ||
"version": "0.3.5", | ||
"description": "React hook for using local storage the same way you use setState()", | ||
"version": "0.4.0", | ||
"description": "React hook for local storage state done right", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "repository": "astoilkov/use-local-storage-state", |
5471