How to fetch data with React Hooks
A tutorial on fetching data in React using only built-in Hooks like useState and useEffect, without third-party libraries.
A tutorial on fetching data in React using only built-in Hooks like useState and useEffect, without third-party libraries.
A tutorial on creating a custom React Hook called 'useBoolean' to manage stateful boolean values more efficiently.
A React tutorial on using local storage with custom hooks to persist state, including session storage and caching.
A custom React Hook to calculate and return the scrollbar width, useful for resolving layout issues in applications.
A tutorial on creating a custom React Hook to synchronize component state with the browser's local storage.
A tutorial on creating a custom React hook to detect clicks outside a component, useful for closing dropdowns or dialogs.
A guide to creating a custom React Hook that detects whether a user is scrolling up or down on a webpage.
A guide to creating a custom React Hook that detects if an element's content is overflowing vertically or horizontally.
Learn how to run React's useEffect Hook only on component updates using useRef and a custom hook.
Learn how to run React's useEffect Hook only once using useRef and a custom hook for conditional execution.
Explains how to correctly type a custom React hook to return a tuple instead of an array, fixing TypeScript type inference issues.
A guide on testing custom React hooks, using a useUndo hook as a practical example to demonstrate effective testing strategies.
A tutorial on creating a custom React hook to persist state in localStorage, making user preferences sticky across page refreshes.
A guide to creating a custom React Hook, useInterval, to make setInterval work declaratively with React Hooks.
Explores the future of React render props with the rise of Hooks, comparing implementations and arguing both have a place.
A historical React article explaining when to avoid the render props pattern, advocating for custom hooks as a superior alternative.