Skip to content

jamal-rahimzadegan/React-Hooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 

Repository files navigation

react-logo
  • useDebounce — Get the debounced input string (for improving performance and decreasing rerenders)
  • useComponentWillMount — Brings ComponentWillMount lifecycle to the function components
  • useDismiss — Dismiss an element (Dropdown or etc.) onScroll or on clicking outside
  • useDetectDevice — Detect the user device (is mobile or not)
  • useDidUpdate — Brings ComponentDidUpdate lifecycle to the function components
  • useElementDimension — Gives dimensions of an element
  • useHitAction — DRY your dispatch hook (for calling redux actions)
  • useVisibility — Detects if tab is active or not
  • useRenderCount — Counts the number of component render
  • useLocation — Working with location
  • useListenEvent — Listening to events in a safe and easy way
  • useDeviceInfo — Get the device info and you can extend it!!!
  • useKeyPress — Listen to key press and event pass it a callback.
  • useHistoryAction — Detect backward and forward click in the browser

And More !