Installation
Get started with sse-hooks in your React or Next.js project.
Quick Start
The easiest way to use sse-hooks is via our CLI tool. This allows you to interactively manage hooks and add only what you need to your project.
You can initialize the tool with:
Terminal
npx sse-tool init
Once initialized, you can manage your hooks using the following commands:
- List available hooks to see what you can install:
npx sse-tool list - Add a specific hook directly to your project:
npx sse-tool add <hook-name>
That's it! The hook will be added to your project structure automatically 🚀
Package Manager
If you prefer to install the entire library as a dependency, you can use your favorite package manager:
npm install sse-hooks
yarn add sse-hooks
pnpm add sse-hooks
bun add sse-hooks