react-hooks-kit-plus
v1.0.1
Published
Reusable and generator-based React hooks
Downloads
218
Readme
react-hooks-kit-plus
Simple, reliable React hooks for everyday use.
Install
npm install react-hooks-kit-plusUsage
import { useFetch, useToggle } from "react-hooks-kit-plus";Hooks
useFetch
Fetch data from API.
const { data, loading, error } = useFetch("/api/users");useDebounce
Delay value updates.
const debounced = useDebounce(value, 500);useLocalStorage
Persist state in localStorage.
const [theme, setTheme] = useLocalStorage("theme", "light");useToggle
Toggle boolean state.
const { state, toggle } = useToggle();Features
- ✅ Simple and lightweight
- ✅ Reliable and safe
- ✅ No dependencies
- ✅ Easy to use
License
MIT
