{"repo":"wojtekmaj/react-hooks","free":true,"listed":false,"github":"https://github.com/wojtekmaj/react-hooks","clone":"git clone https://github.com/wojtekmaj/react-hooks.git","description":"A collection of React Hooks.","language":"TypeScript","stars":104,"topics":["react","hooks","react-hooks"],"license":"MIT","category":"ui-components","readme_excerpt":"React-Hooks A collection of React Hooks. tl;dr - Install by executing npm install @wojtekmaj/react-hooks or yarn add @wojtekmaj/react-hooks . - Import by adding import { useTick } from '@wojtekmaj/react-hooks' . - Do stuff with it! Server-side rendering All hooks from this package support SSR. Some hooks use browser-only APIs, e.g. useCurrentPosition . Such hooks, if they are supposed to return a value, will return null instead. User guide Table of contents Browser state and capabilities - useCurrentPosition - useDeviceOrientation - useDocumentVisibility - useOnLine - usePermissionState Events and observers - useEventListener - useIntersectionObserver - useMutationObserver - useResizeObserver Media queries and preferences - useForcedColors - useMatchMedia - usePrefersColorScheme - usePrefersColorSchemeDark - usePrefersColorSchemeLight - usePrefersContrast - usePrefersReducedMotion - usePrefersReducedTransparency Scrolling and viewport - useScrollLeft - useScrollLeftDirection - useScrollLeftPercent - useScrollTop - useScrollTopDirection - useScrollTopPercent - useWindowHeight - useWindowSize - useWindowWidth State and storage - useDebouncedState - useDebouncedValue - useLocalStorage - useSessionStorage - useToggle Timing and effects - useDebouncedEffect - useSetInterval - useSetTimeout - useTick Browser state and capabilities useCurrentPosition Returns current position from Geolocation API. Sample usage useDeviceOrientation Returns the device's current physical orientation. On","default_branch":null,"files":null,"tree":[],"storefront":"/r/wojtekmaj","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/wojtekmaj/react-hooks/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}