1.1.5 • Published 6 months ago
hoocs v1.1.5
Hoocs - A CLI-driven React hooks library
A CLI-driven React hooks library offering a collection of ready-to-use Typescript hooks that you can easily copy, customize, and integrate into your projects.
Installation
Install the CLI Globally:
npm install -g hoocs
Add Configuration File:
This will create hoocs.json
in the root of your project and help you set destination paths for hooks.
npx hoocs init
Add Hooks to Your Project:
npx hoocs add useTheme
List Available Hooks:
npx hoocs list
Need hooks for JavaScript projects? Until we officially support them, there is a simple workaround. After installing, you can change the file extension to
.js
and remove the types from the hook file.
Hooks and Documentation
Visit: Hoocs Documentation for detailed information on each hook.
Available Hooks
- useCopyToClipboard
- useCounter
- useDebounce
- useDefault
- useDeviceSize
- useDocumentTitle
- useInViewport
- useLockScroll
- useOnline
- usePageVisibility
- usePrevious
- useReducedMotion
- useTabAway
- useTheme
- useWindowSize
Don't see a hook you need? Request a new hook or contribute to the project.
Contributing
We welcome contributions to Hoocs! Please check out the contribution guide to get started.