weekwood / rooks

Essential hooks ⚓ to super charge your components!

Home Page:https://react-hooks.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool




Build Status Release script All Contributors


A super awesome collection of regularly used custom hooks as utils for React.

Image from Gyazo

List of all hooks

Features

✅ Collection of 55 hooks as standalone modules.

✅ Standalone package with all the hooks at one place

✅ CommonJS, UMD and ESM Support

Installation

For a specific hook like useDidMount

npm i -s @rooks/use-did-mount
npm i -s @rooks/use-interval
import useDidMount from "@rooks/use-did-mount";

For standalone build with all the hooks

npm i -s rooks

Import any hook from "rooks" and start using them!

import { useDidMount } from "rooks";

Usage

function App() {
  useDidMount(() => {
    alert("mounted");
  });
  return (
    <div className="App">
      <h1>Hello CodeSandbox</h1>
      <h2>Start editing to see some magic happen!</h2>
    </div>
  );
}

Standalone Package

Package containing all the hooks is over here. - Docs and Npm Install


License

MIT

Contributors

Thanks goes to these wonderful people (emoji key):


Bhargav Ponnapalli

💻 🤔 🎨 📖 🐛

Tsvetan

💻

Wei Zhu

💻

Akshay Kadam (A2K)

💻

Austin Peterson

💻

Frank Hellwig

💻

Neilor Caldeira

💻

Cong Zhang

💻

Brian Steere

💻

anil kumar chaudhary

💻

Harsh Zalavadiya

💻

maciek_grzybek

💻

CT Wu

💻 🤔

Braxton Christensen

💻

Lionel

💻

Max Stoiber

💻

Stupid

💻

Michael Moore

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

About

Essential hooks ⚓ to super charge your components!

https://react-hooks.org

License:MIT License


Languages

Language:TypeScript 75.0%Language:JavaScript 24.2%Language:CSS 0.8%Language:Shell 0.1%