The Wayback Machine - http://web.archive.org/web/20220709185239/https://github.com/topics/react-hook
Skip to content
#

react-hook

Here are 405 public repositories matching this topic...

imbhargav5
imbhargav5 commented Mar 25, 2022

Is your feature request related to a problem? Please describe.
Some users require saving objects like ES6 maps which can't be JSON.stringified without a replacer function.

Describe the solution you'd like

We need replacer/ reviver functions optionally to be sent as arguments.

useLocalstorageState('key', value, {
  replacer: () => {},
  reviver: () => {} 
})

`
help wanted good first issue
jdthorpe
jdthorpe commented Nov 21, 2021

Describe the bug
The useSize() function in the demo for @react-hook/resize-observer uses the anti-pattern of depending on the ref object provided by React.useRef() in the dependency list of React.useLayoutEffect(). This has the effect of not setting an initial value for the size on the first rendering. This matters because elements that don't get re-rendered never get a sized.

**

good first issue
JoeDuncko
JoeDuncko commented May 2, 2021

Our goal with @react-hookz/web is to give the react community a general-purpose React hooks library built with care.

We'd like to port the remaining hooks from react-use (the project @react-hookz/web grew out of) while keeping in mind our tenants:

  • General-purposeness (hooks should fulfill a wide array of use cases)
  • Composability (a preferenc
enhancement 🆘 help wanted good first issue 🎂 new hook

Improve this page

Add a description, image, and links to the react-hook topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the react-hook topic, visit your repo's landing page and select "manage topics."

Learn more