crooks icon indicating copy to clipboard operation
crooks copied to clipboard

A collection of eclectic react hooks

Results 2 crooks issues
Sort by recently updated
recently updated
newest added

If initial value for `useLocalStorage` is a function, like in [lazy `useState`](https://reactjs.org/docs/hooks-reference.html#lazy-initial-state), it doesn't work: ```js let [value, setValue] = useLocalStorage(key, () => initialValue) ```

Seems it does not work with Vite correctly. When first import useLocaleStorage I catched an Error: local-storage.js:5 Uncaught ReferenceError: global is not defined at node_modules/local-storage/local-storage.js But after editing vite config...