
Welcome to reacthooks.dev
useSyncedState
Synced State Experiment After working on useLocalStorage, I wondered how hard it would be to sync state to persistent, distributed storage…
useProgressiveLoading
If you’ve ever worked with a slow moving API that you just can’t work around, you’ve probably written something along these lines already. I…
useBrowserStorage
For day 3 of my #100DaysOfCode challenge I thought I would expand and polish a hook I previously wrote (adapted from several examples online…
useFakeAsync
You can see the hook takes a few simple parameters, including the familiar pairing of a callback function and a delay in milliseconds. This…
useTSDX
Publishing hooks One of the main outcomes I wanted from building this blog was to maintain a companion library of useful hooks. I’m writing…
useGeolocation
One of the first custom hooks I wrote was to grab the user’s location using the Geolocation API. I wrote it for a project with two…
useTheme
Recently I was working on a React Native project and I was asked to come up with an a dark theme for the app and make that the default, with…
useDocumentation
useDocumentation Setting the scene Between talks at React Europe Conference I was working on a chat interface in React Native, backed by…
reacthooks.dev
Welcome to reacthooks.dev Why did you create this site? My primary motivation was simply to experiment with Gatsby for an upcoming blog I’m…