reactuse
115+ production-ready React Hooks for sensors, UI, state & browser APIs. Tree-shakable, SSR-safe, TypeScript-first. Used by Shopee, PDD & Ctrip. Inspired by Vue
What is reactuse?
115+ production-ready React Hooks for sensors, UI, state & browser APIs. Tree-shakable, SSR-safe, TypeScript-first. Used by Shopee, PDD & Ctrip. Inspired by VueUse.
Overview of reactuse
What it is
ReactUse is a comprehensive collection of over 100 essential React Hooks for building modern React applications. It is inspired by VueUse and provides hooks for browser APIs, state management, sensors, animations, DOM elements, and more. The project is tree-shakable, SSR-compatible, and TypeScript-first. It is used by Shopee, PDD, and Ctrip (as stated in the metadata tagline). It also supports MCP (Model Context Protocol) for AI-powered hook discovery.
Key features
- 100+ Hooks — The most comprehensive React hooks collection
- Tree-Shakable — Import only what you need
- TypeScript — Full type definitions for every hook
- SSR Compatible — Works with Next.js, Remix, and more
- Well Documented — Interactive demos for every hook
- MCP Support — AI-powered hook discovery
Use cases
Building React applications that require hooks for browser APIs, state management, sensors, and DOM elements. Suitable for SSR frameworks like Next.js and Remix. Used in production by Shopee, PDD, and Ctrip.
Getting started
bashnpm i @reactuses/core``````tsximport { useToggle } from '@reactuses/core';const Demo = () => { const [on, toggle] = useToggle(true); return {on ? 'ON' : 'OFF'};};
License and pricing
The project is released under the Unlicense (public domain). It is open source and free to use. Sponsorship options are available but not required.
Based on the project's public README and repository metadata.