@noaignite/react-utils
React-specific utilities. These helpers are meant for reusable React patterns, component logic, and hooks that are safe to share across apps.
Installation
@noaignite/react-utils is available as an npm package .
// with pnpm
pnpm add @noaignite/react-utils
// with yarn
yarn add @noaignite/react-utils
// with npm
npm install @noaignite/react-utilsAvailable exports
- createPolymorph
- createRenderBlock
- createRequiredContext
- createSvgIcon
- ErrorBoundary
- getReactElementRef
- isRefObject
- setRef
- useControlled
- useDismiss
- useDragScroll
- useElementSize
- useEvent
- useFocusReturn
- useForkRef
- useGesture
- useInert
- useIntersectionObserver
- useInterval
- useIsomorphicEffect
- useMediaQuery
- useMutationObserver
- usePressHold
- useResizeObserver
- useRTL
- useScrollProgress
- useStableCallback
- useSticky
- useTimeout
- useVisualViewport
- useWindowSize
Documentation
Visit https://noaignite.dev/react-utils to view the full documentation.
Contributing
Read the contributing guide to learn about our development process, how to propose bug fixes and improvements, and how to build and test your changes.
Changelog
The changelog is regularly updated to reflect what’s changed in each new release.
License
This project is licensed under the terms of the MIT license .