1.0.4 • Published 11 months ago

@aurthle/react-hooks v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

✨ About

@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


📦 Installation

npm install @aurthle/react-hooks
# or
yarn add @aurthle/react-hooks
# or
pnpm add @aurthle/react-hooks

🚀 Quick Example

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>} />;

🧠 Hooks Included

  • useHover()
  • useClipboard()
  • useClickOutside()
  • useLocalStorage()
  • useWindowSize()
  • useNetworkStatus()
  • useTitle()
  • useIdle()
  • ...and more

📘 See full list here: hub.aurthle.one/hooks/react-hooks


🧩 Utilities

  • <For />
  • <If />
  • <Show />
  • <Switch />
  • <Class />
  • <RenderAfter />

🧪 Run Tests

npm run test

🤝 Contribute

Want to improve or add a hook? You're welcome!


🪪 License

MIT — Free for commercial and personal use.


📚 Ressources


👨‍💻 Maintainer


🛠 Maintenance

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.


1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago