react-use icon indicating copy to clipboard operation
react-use copied to clipboard

React Hooks — 👍

Results 284 react-use issues
Sort by recently updated
recently updated
newest added

# Description With strictNullChecks enabled in typescript `UseMeasureRef` complains that it's being passed something that may be null. It's already checking for nulls with `if (!element) return;`, so it should...

# Description useMeasure hook caused typescript errors because the ref function argument could either be an element or null, but the function only accepted an element. ![image](https://user-images.githubusercontent.com/77127514/190287949-683c549b-1539-4654-b873-6124486c68e8.png) ## Type of...

**Is your feature request related to a problem? Please describe.** Some of my projects requires `useSessionStorage` hooks but with storage encryption. **Describe the solution you'd like** `useEncryptedSessionStorage` that extends `useSessionStorage`...

**Is your feature request related to a problem? Please describe.** I almost never use the 2nd argument ("toggle"), but I often need 2 functions to force the value to `true`...

**What is the current behavior?** **Steps to reproduce it and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your...

For some reason after I updated my project to React 18 and react-use to 17.4, while developing process (on localhost), I have always ` {loading: true}` property. With both options...

**Is your feature request related to a problem? Please describe.** if you do like ![image](https://user-images.githubusercontent.com/25374826/188981060-125dec66-8113-445d-9296-36a0d692f9db.png) just do "useState" and normal javascript : / ? tracking variable without have possibilities to...

Hello, I need a hook that has a boolean value with OR / AND operator. Like below ### useOR ```ts const [a, setA] = useState(false) const [b, setB] = useState(false)...

I've had the PR #1438, which fixes several issues with both `useLocalStorage` and `useSessionStorage`, laying unreviewed and unmerged since August 2020. Today I yet again found some merge-conflicts had popped...

**Is your feature request related to a problem? Please describe.** I'd like the element that's being rendered by `useHover` to control the hovering state. In some cases, my mouse can...