streamich/react-use ? reverse-engineered prompt

Reverse engineered prompt

Build me a reusable React hooks library for TypeScript apps, basically a toolbox developers can install and import from instead of rewriting the same browser and UI logic over and over.

I want lots of small hooks that feel simple to use, with clear names and examples. Cover things like window size, scrolling, mouse position, hover, keyboard presses, media queries, geolocation, network status, battery status, device orientation, idle state, and page location. Also include handy UI hooks for clicking outside an element, drag and drop areas, audio and video controls, fullscreen, sliders, speech, and vibration. Add timing and animation helpers for intervals, timeouts, request animation frame, tweening, and spring style motion.

Please include solid TypeScript types, tests, documentation pages, and simple demos so people can quickly see how each hook works. Make it easy to publish as an npm package. Look up current React hook best practices if you need to.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab