Skip to content

tjcchen/react-hooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React-Hooks

React hooks collection.

Hooks Categories

Must Know Hooks: useState, useEffect, useContext

Lesser Used Hooks: useRef, useMemo, useCallback, useReducer, useTransition, useDeferredValue

Optional Hooks: useLayoutEffect, useDebugValue, useImperativeHandle, useId

Custom React Hooks

Custom-Hooks-1: useToggle, useTimeout, useDebounce, useUpdateEffect, useArray

Custom-Hooks-2: usePrevious, useStateWithHistory, useStorage, useAsync, useFetch

Custom-Hooks-3: useScript, useDeepCompareEffect, useEventListener, useOnScreen, useWindowSize

Custom-Hooks-4: useMediaQuery, useGeolocation, useStateWithValidation, useSize, useEffectOnce

Custom-Hooks-5: useClickOutside, useDarkMode, useCopyToClipboard, useCookie, useTranslation

Custom-Hooks-6: useOnlineStatus, useRenderCount, useDebugInformation, useHover, useLongPress

License

This project is licensed under the terms of the MIT license.

About

🪝 React hooks collection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published