Thanks to visit codestin.com
Credit goes to github.com

Skip to content

imbhargav5/rooks

Repository files navigation




Build Status All Contributors


Collection of regularly used custom hooks as utils for React.

Image from Gyazo

https://react-hooks.org

Features

βœ… Collection of 22+ hooks as separate 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>
  );
}

Documentation

View the docs here

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
Bhargav Ponnapalli

πŸ’» πŸ€” 🎨 πŸ“– πŸ›
Tsvetan
Tsvetan

πŸ’»
Wei Zhu
Wei Zhu

πŸ’»
Akshay Kadam (A2K)
Akshay Kadam (A2K)

πŸ’»
Austin Peterson
Austin Peterson

πŸ’»
Frank Hellwig
Frank Hellwig

πŸ’»
Neilor Caldeira
Neilor Caldeira

πŸ’»
Cong Zhang
Cong Zhang

πŸ’»
Brian Steere
Brian Steere

πŸ’»
anil kumar chaudhary
anil kumar chaudhary

πŸ’»
Harsh Zalavadiya
Harsh Zalavadiya

πŸ’»
maciek_grzybek
maciek_grzybek

πŸ’»
CT Wu
CT Wu

πŸ’» πŸ€”
Braxton Christensen
Braxton Christensen

πŸ’»
Lionel
Lionel

πŸ’»

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

Sponsor this project

Packages

No packages published

Contributors 85