Modern & reusable React hooks and utilities by Aurthle.
Documentation • Code Source • Aurthle.com
@aurthle/react-hooks
is a clean, lightweight and modern library of React hooks and UI utilities.
Built for speed, simplicity and reusability — powered by Aurthle.
📍 Live docs & examples: hub.aurthle.one/hooks/react-hooks
npm install @aurthle/react-hooks
# or
yarn add @aurthle/react-hooks
# or
pnpm add @aurthle/react-hooks
import { useHover } from '@aurthle/react-hooks';
function Button() {
const { hovered, ref } = useHover();
return <button ref={ref}>{hovered ? '👀 Hovered' : 'Hover me'}</button>;
}
import { For } from '@aurthle/react-hooks';
const list = ['Aurthle', 'Rocks'];
<For each={list} render={(item, i) => <p key={i}>{item}</p>} />;
useHover()
useClipboard()
useClickOutside()
useLocalStorage()
useWindowSize()
useNetworkStatus()
useTitle()
useIdle()
- ...and more
📘 See full list here: hub.aurthle.one/hooks/react-hooks
<For />
<If />
<Show />
<Switch />
<Class />
<RenderAfter />
npm run test
Want to improve or add a hook? You're welcome!
MIT — Free for commercial and personal use.
Pour signaler un bug ou suggérer une amélioration, merci d’ouvrir une issue sur GitHub. Les contributions directes via PR sont désactivées pour ce module.