# @mrcaidev/hooks

> React utility hooks

Latest version **0.10.0** (published 2024-11-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @mrcaidev/hooks
pnpm add @mrcaidev/hooks
yarn add @mrcaidev/hooks
bun add @mrcaidev/hooks
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.10.0 |
| Published | 2024-11-22 |
| First published | 2022-08-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 37.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Yuwang Cai |
| Maintainers | mrcaidev |
| Keywords | react, hooks, typescript, ssr |

## Links

- npm: https://www.npmjs.com/package/@mrcaidev/hooks
- Repository: https://github.com/mrcaidev/hooks
- Homepage: https://hooks.mrcai.dev
- Issues: https://github.com/mrcaidev/hooks/issues
- npm.io page: https://npm.io/package/@mrcaidev/hooks

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.10.0 (latest) — 2024-11-22
- 0.9.0 — 2023-01-30
- 0.8.1 — 2023-01-27
- 0.8.0 — 2023-01-27
- 0.7.0 — 2022-10-14
- 0.6.0 — 2022-10-11
- 0.4.1 — 2022-08-10
- 0.4.0 — 2022-08-10
- 0.3.0 — 2022-08-04
- 0.2.1 — 2022-08-03
- 0.2.0 — 2022-08-03
- 0.1.0 — 2022-08-02

## README

# @mrcaidev/hooks

A collection of React utility hooks.

- **Easy to use:** Good defaults, while highly customizable.
- **Fully typed:** Enjoy 100% type safety with TypeScript.
- **Server ready:** SSG/SSR support out of the box.
- **Lightweight:** <3KB gzipped. Tree-shaking supported.

## Getting started

Please follow the [documentation](https://hooks.mrcai.dev) to get started with `@mrcaidev/hooks`.

## Built with

[![TypeScript](https://img.shields.io/badge/typescript-3178c6?style=for-the-badge&logo=typescript&logoColor=ffffff)](https://www.typescriptlang.org/)
[![React](https://img.shields.io/badge/react-23272f?style=for-the-badge&logo=react)](https://reactjs.org/)
[![Vite](https://img.shields.io/badge/vite-646cff?style=for-the-badge&logo=vite&logoColor=ffffff)](https://vitejs.dev/)
[![Vitest](https://img.shields.io/badge/vitest-6da13f?style=for-the-badge&logo=vitest&logoColor=ffffff)](https://vitest.dev/)
[![Testing Library](https://shields.io/badge/testing%20library-e33433?style=for-the-badge&logo=testinglibrary&logoColor=ffffff)](https://testing-library.com/)
[![Astro](https://img.shields.io/badge/astro-7e22ce?style=for-the-badge&logo=astro&logoColor=ffffff)](https://astro.build/)
[![Tailwind CSS](https://shields.io/badge/tailwind%20css-38bdf8?style=for-the-badge&logo=tailwindcss&logoColor=ffffff)](https://tailwindcss.com/)
[![pnpm](https://img.shields.io/badge/pnpm-f69220?style=for-the-badge&logo=pnpm&logoColor=ffffff)](https://pnpm.io/)
[![Turborepo](https://img.shields.io/badge/turborepo-000000?style=for-the-badge&logo=turborepo)](https://turbo.build/repo)
[![ESLint](https://shields.io/badge/eslint-4b32c3?style=for-the-badge&logo=eslint&logoColor=ffffff)](https://eslint.org/)
[![Prettier](https://shields.io/badge/prettier-24292e?style=for-the-badge&logo=prettier)](https://prettier.io/)
[![Commitlint](https://shields.io/badge/commitlint-121212?style=for-the-badge&logo=commitlint&logoColor=ffffff)](https://commitlint.js.org/)
[![EditorConfig](https://shields.io/badge/editorconfig-000?style=for-the-badge&logo=editorconfig&logoColor=ffffff)](https://editorconfig.org/)
[![Husky](https://shields.io/badge/husky-42b983?style=for-the-badge&logo=git&logoColor=ffffff)](https://typicode.github.io/husky/)
[![Lint staged](https://shields.io/badge/lint%20staged-f54d27?style=for-the-badge&logo=git&logoColor=ffffff)](https://github.com/okonet/lint-staged)

## Contributing

Please read the [contributing guide](https://github.com/mrcaidev/hooks/tree/master/.github/CONTRIBUTING.md) before any contribution.

> Currently this is really just a personal project. I'm trying to build a library that can make me proud of, while also learning React and Web APIs. But if you decide to help out, I believe it will definitely make this project better, and we can surely learn a lot from each other.

## License

[MIT](https://github.com/mrcaidev/hooks/tree/master/LICENSE)

---
_Source: https://npm.io/package/@mrcaidev/hooks · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
