reactuse icon indicating copy to clipboard operation
reactuse copied to clipboard

Collection of essential React Hooks Utilities.

Results 22 reactuse issues
Sort by recently updated
recently updated
newest added

我现在是借助了 jotai 来进行状态同步,这个默认行为可能需要在文档提示一下? ``` const uiContainerAtom = atom('narrow'); export function useUiContainer() { const [cookieValue, updateCookie, refreshCookie] = useCookie('ui.is-container', {}, 'narrow'); const [uiContainer, setUiContainer] = useAtom(uiContainerAtom); const onToggle = () =>...

## Reproduction Hi, just found another issue: ```jsx function Demo() { const [visible, setVisible] = useState(false) const buttonRef = useRef(null) const onClick = () => { console.log('button clicked!') // not...

In theory, only frequently changing stores will cause tearing. [https://github.com/reactwg/react-18/discussions/70](vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/code/electron-sandbox/workbench/workbench.html)

I am experiencing an issue with the useFullscreen hook where the fullscreen functionality works as expected, but interactive elements within the UI, such as text, buttons, and tooltips for charts,...

useLatest为什么使用effect监听一层,为什么不直接ref.current = value。

I have a situation where I want to run a `useInterval` function immediately when rendering the hook, but not when its `delay` is `null`. ```ts const shouldRun = false; useInterval(...

recommend to use [react-hotkeys-hook](https://www.npmjs.com/package/react-hotkeys-hook)