React TL;DR – a human filter for most useful tech content.

All posts

4 Nice and Simple React Hooks

  • useDebounce
    With this neat hook, you will be able to debounce a value by a delay — just like you can delay the execution of a function with a normal debounce.
  • useWhenVisible
    This hook allows you to listen for a specific element, and when that element becomes visible in the viewport, a callback function will be called to notify you about it. You can then use this callback as a trigger for fetching more data.
  • useTimeout
    This hook lets you use the normal setTimeout behaviour in a declarative way whenever you want to wait before doing something.
  • useInterval
    This hook is very useful if you want to do any sort of polling on the server to get fresh data.