ahooks
OfficialReact state, simplified: grouped updates.
Authorblockmatic
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Abstract state management patterns for React apps using ahooks v3+ hooks, focusing on grouped updates and localStorage persistence to keep UI state coherent across components and sessions.
Core Features & Use Cases
- Grouped state updates: useSetState to manage multiple fields that update together.
- LocalStorage persistence: useLocalStorageState to persist user preferences and UI state.
- Complementary patterns: integrates with URL state patterns or async strategies when needed (e.g., using nuqs or TanStack Query for map- or data-driven state, respectively).
Quick Start
Install and import useSetState and useLocalStorageState to immediately manage a form and save preferences.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: ahooks Download link: https://github.com/blockmatic/basilic/archive/main.zip#ahooks Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.