0.9.0 • Published 1 year ago
@mrcaidev/hooks v0.9.0
✨ Introduction
@mrcaidev/hooks is a collection of useful React hooks.
- Highly customizable: Good defaults, with easy customization.
- 100% in TypeScript: Unleash the full power of typing system.
- Ready for SSG/SSR: Works on both server and browser.
- Tiny and treeshakable: <3KB gzipped. Tree-shaking supported.
🚀 Getting started
@mrcaidev/hooks
is available in npm registry.
npm i @mrcaidev/hooks # Use npm
yarn add @mrcaidev/hooks # Use yarn
pnpm add @mrcaidev/hooks # Use pnpm
And then import the hook you want to use:
import { useBoolean } from "@mrcaidev/hooks";
const Component = () => {
const { value, toggle } = useBoolean();
return ...;
};
Please see the documentation for more information.