Skip to content

azlibdar/hoocs

Repository files navigation

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.

npm version license downloads typeScript


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


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.