// the find
WebDevSimplified/useful-custom-react-hooks
A collection of 30 custom React hooks accompanying a YouTube tutorial series by Web Dev Simplified. Each hook lives in its own folder alongside a demo component. This is a learning resource, not a production library.
The hooks cover genuinely useful patterns: useDeepCompareEffect avoids the stale-closure trap that burns people with object dependencies, useStateWithHistory is a clean undo/redo primitive, and useDebugInformation is a handy render-profiling tool you'd otherwise write yourself. Each hook ships with a working demo component, so you can see the expected behavior without hunting for docs.
The README is the unmodified Create React App boilerplate — whoever made this repo never wrote a word of actual documentation. No TypeScript, no tests, no npm package, last touched May 2024. You can't install any of this; you have to copy-paste individual files. Several hooks (useFetch, useAsync) skip cancellation entirely, so you'll get state updates on unmounted components in production if you lift them verbatim.