Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Essential hooks ⚓ to super charge your components!

License

NotificationsYou must be signed in to change notification settings

mahijendra/rooks

 
 

Repository files navigation




Build StatusRelease scriptAll Contributors


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

Image from Gyazo

List of all hooks

Features

✅ Collection of 62 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
importuseDidMountfrom"@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

functionApp(){useDidMount(()=>{alert("mounted");});return(<divclassName="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 andNpm 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

💻

Arman

💻

zeritte

💻

Cal Courtney

💻

wes christiansen

💻

Daniel Holmes

💻

Adrien Lemaire

💻

Harshil Parmar

💻

Yakko Majuri

💻

Branden Visser

💻

thodubois

💻

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

About

Essential hooks ⚓ to super charge your components!

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript77.9%
  • JavaScript21.3%
  • Other0.8%

[8]ページ先頭

©2009-2025 Movatter.jp