TypeScript + React: Typing custom hooks with tuple types
Explains how to correctly type a custom React hook to return a tuple instead of an array, fixing TypeScript type inference issues.
Explains how to correctly type a custom React hook to return a tuple instead of an array, fixing TypeScript type inference issues.
A tutorial on creating a custom React Native hook to dynamically change status bar styles per screen using React Navigation.
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.