A small, growing collection of React hooks and TypeScript utilities gathered from recurring frontend problems.
This is a reference shelf rather than a published package: each item is kept independent so it can be read, adapted and copied without bringing in the entire repository.
useAbortController— manage cancellable async operationsuseDebounce— delay frequently changing valuesuseLocalStorage— keep React state in sync withlocalStorageuseMediaQuery— respond to CSS media queries in ReactusePrevious— retain the previous value between renders
currency-helpers— resolve and format currencies withIntl.NumberFormatdate-helpers— compare and format dates with Day.jsstring-helpers— format, normalize and sanitize strings and numbersvalidation-helpers— small format and identity validation helperscipher— encryption and decryption helpers
Individual hooks include their own API notes and usage examples. Utility files are documented alongside the implementation.
- Written in TypeScript, with React used where a hook requires it.
- Some utilities depend on libraries such as Day.js; check the imports before copying.
- The examples are intended to be adapted to the needs and conventions of the project using them.