@pastable/react
Version:
12 lines (10 loc) • 1.14 kB
Markdown
# @pastable/react
- [atomWithToggle](../../docs/atomWithToggle.md): [Jotai](https://github.com/pmndrs/jotai) specific. Like if useToggle & useAtom & useLocalStorage had a child.
- [useClickAway](../../docs/useClickAway.md): Detect and invoke a callback when clicking away of target element.
- [useEvent](../../docs/useEvent.md): Define an event listener on window or a given element declaratively
- [useForceUpdate](../../docs/useForceUpdate.md): One liner to force a re-render when needed
- [useIsMounted](../../docs/useIsMounted.md): Keep track of a component mounted using ref/state.
- [useQueryParams](../../docs/useQueryParams.md): Allows you to get/set page history with query params, usable like a useState.
- [useSelection](../../docs/useSelection.md): Like if useState had a child with Array. Makes it easy to work with an array of objects with all the actions available.
- [useUpdateEffect](../../docs/useUpdateEffect.md): React effect hook that invokes only on update. (taken from chakra-ui)
- [usePreloadImages](../../docs/usePreloadImages.md): Preload images urls so they can appear instantly when needed