juliencrn/usehooks-ts — dự án frontend — đang có 7.9k sao GitHub trong nhóm Frontend. React hook library, ready to use, written in Typescript.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
React hook library, ready to use, written in Typescript.
npm i usehooks-ts
Created by Julien Caron and maintained with ❤️ by an amazing team of developers.
💫 Introduction
useHooks(🔥).ts is a React hooks library, written in Typescript and easy to use. It provides a set of hooks that enables you to build your React applications faster. The hooks are built upon the principles of DRY (Don't Repeat Yourself). There are hooks for most common use cases you might need.
The library is designed to be as minimal as possible. It is fully tree-shakable (using the ESM version), meaning that you only import the hooks you need, and the rest will be removed from your bundle making the cost of using this library negligible. Most hooks are extensively tested and are being used in production environments.
Usage example
import { useLocalStorage } from 'usehooks-ts'
function Component() {
const [value, setValue] = useLocalStorage('my-localStorage-key', 0)
// ...
}
🪝 Available Hooks
useBoolean — handles boolean state with useful utility functions.
useClickAnyWhere — handles click events anywhere on the document.
useCopyToClipboard — copies text to the clipboard using the Clipboard API.
useCountdown — manages countdown.
useCounter — manages a counter with increment, decrement, reset, and setCount functionalities.
useDarkMode — returns the current state of the dark mode.
useDebounceCallback — creates a debounced version of a callback function.
useDebounceValue — returns a debounced version of the provided value, along with a function to update it.
useDocumentTitle — sets the document title.
useEventCallback — creates a memoized event callback.
useEventListener — attaches event listeners to DOM elements, the window, or media query lists.
useHover — tracks whether a DOM element is being hovered over.
useIntersectionObserver — tracks the intersection of a DOM element with its containing element or the viewport using the Intersection Observer API.
useInterval — creates an interval that invokes a callback function at a specified delay using the setInterval API.
useIsClient — determines if the code is running on the client side (in the browser).
useIsMounted — determines if the component is currently mounted.
useIsomorphicLayoutEffect — uses either useLayoutEffect or useEffect based on the environment (client-side or server-side).
useLocalStorage — uses the localStorage API to persist state across page reloads.
useMap — manages a key-value Map state with setter actions.
useMediaQuery — tracks the state of a media query using the Match Media API.
useOnClickOutside — handles clicks outside a specified element.
useReadLocalStorage — reads a value from localStorage, closely related to useLocalStorage().
useResizeObserver — observes the size of an element using the ResizeObserver API.
useScreen — tracks the screen dimensions and properties.
useScript — dynamically loads scripts and tracking their loading status.
useScrollLock — A custom hook that locks and unlocks scroll.
useSessionStorage — uses the sessionStorage API to persist state across page reloads.
useStep — manages and navigates between steps in a multi-step process.
useTernaryDarkMode — manages ternary (system, dark, light) dark mode with local storage support.
useTimeout — handles timeouts in React components using the setTimeout API.
useToggle — manages a boolean toggle state in React components.
useUnmount — runs a cleanup function when the component is unmounted.
useWindowSize — tracks the size of the window.
💚 Backers
Big thanks go to all our backers! [Become a backer]
Sentry
KATT
Adhi Ravishankar
great-work-told-is
✨ Contributors
Big thanks go to all our contributors! [Become a contributor]
Julien 🖋 💻 🎨 🤔
a777med 💻
Nguyen Tien Dat 💻
Elias Cohenca 🖋
João Deroldo 🐛 💻
Nishit 💻
Jon Koops 💻
LoneRifle 💻
Viktor 🤔 🐛
Bruno Clermont 💬
yoannesbourg 🤔
Strange2x 🤔
Jason Pickens 🐛
Sel-Vin Kuik 🐛
isaac 🐛
Bruno RZN 💻 👀
Nathan Manceaux-Panot 💻 👀
Dien Vu 🤔
Oleg Kusov 🤔
Matthew Guy 🤔
andrewbihl 🐛
lancepollard 🐛
Mukul Bansal 🐛
Jean-Luc Mongrain sur la Brosse 💻 🤔
Nic 🖋
Dan Wood 💻
jo wendenbuerger 🐛
Andrew Nosenko 🐛
CharlieJhonSmith 💻
Sullivan SENECHAL 🤔 🐛 💻
Jason Long 🐛
kxm766 🐛
Quentin 💻 🤔 🖋
Daniel Lazar 💻 🐛
Mark Terrel 🐛 💻
Andreas Herd 🐛
Sonjoy Datta 💻
Ilya Belsky 🐛
James Barrett 💻
AbbalYouness 💻
didriklind 💻 ⚠️
hexp1989 💻
Alvaro Serrano 🖋
Egehan Dülger 💻
PabloLION 🐛 💻
David Sanchez 🐛
Ajay Raja 🐛
Andy Merskin 🤔
Avirup Ghosh 💻 🐛
Sanne Wintrén 🐛
Alessandro 🐛
Andrey Tatarenko 🐛
Anton Rusak 🐛
Mahmood Bagheri 💻
Anver Sadutt 🖋
Bogdan Ailincai 💻
Simeon Griggs 🐛
Kepro 🐛
Jake Lippert 🐛
Tu Nguyen Anh 🐛 💻
Luke Shiels 🐛
Sergei Kolyago 🤔
Adham Akmal Azmi 🐛
Alek Kowalczyk 🐛
Sean Callahan 🐛
Joshua Bean 💻 🐛
Tim Zhao 🐛
Patrick 🐛
Bryce Dorn 💻
angusd3v 💻
Davide Di Simone 🐛
Jack Herrington 🐛
Avi Sharvit 💻 🐛
Nicolae Maties 🐛
Shardul Aeer 🐛
Herlon Aguiar 🐛
Alexis Oney 🖋
curtvict 💻
Josué Cortina 🖋
Alex / KATT 💻
Mourad EL CADI 💻 🐛
James Hulena 🐛
Matthew Hailwood 💻 👀
Michael Norrie 🐛
Valentin Politov 💻
Marnus Weststrate 💻
mancuoj 🖋
Chat Sumlin 💻
Owen Haupt 🐛 🖋
ubarbaxor 💻
Michael Mior 🐛 🖋
Pierre 💻
Harry B 🐛
Valerie 🐛 💻
Steven Vachon 💻
Sean Kirby ⚠️ 💻
Alecsander Farias 💻
Rahul Mishra 💻 👀 🖋
Bryant Smith 💻 🐛
Rob Hannay 💻
Hooriza 💻 🐛
ShanSenanayake 💻
Philip Ghering 💻
Ladislas Dellinger 💻
Haff 💻
Lisandro 💻
Amir hossein rezaei 💻
Nicolas Macian 🐛 💻
Nate Forsyth 💻
satelllte 💻 🐛
Federico Panico 💻
William Pei Yuan 💻
Mihai 💻 🐛
Habib Ogunsola 🖋
Ash Furrow 💻
Daniel Turuș 💻
Rahul Chaudhary 🖋 🐛
Joshua Ojoawo 🤔 🐛
Jack 💻
Jon Linkens 💻 🐛
Jeongjin Oh 🐛
Tianning Li 💻
Lars Artmann 🖋
KBobovskiy 💻
✨ Kathryn Gonzalez ✨ 🖋
Yaroslav Chapelskyi 🖋
Samuel Van Erps 👀
ojolowoblue 🖋
Andrii Kostenko 💻
Akeem Allen 💻 🐛
trongbinhnguyen 🖋
Aniruddha Sil 💻
박찬혁 👀
Anish 💻
Hugo Hutri 🖋
Balz Guenat 💻
OtterGeorge 💻
Samay Sagar 🖋
Pedro Lisboa 🐛
Henrique Malheiros 🐛
Kevin Newman 💻
a503189 🖋
Mourad EL CADI 💻
Pedro Henrique Lopes 💻
Danbi Lee 💻
Connor Jennings 💻
Lucas Gomes 🐛 💻
Martin Zagora 💻
KvD 💻
Alex 💻
Kacey Cleveland 👀
Avirup Ghosh 🐛
yabbal 💻
Craig Patik 🐛
Soldeplata Saketos Candela 💻
TENDOUZHI 🐛
Marcin Wachulski 🐛
Salman Fazal 🐛
shrugs 🐛
hyodori 🐛
Eleazar “E” Ramos 🐛
retnag 🐛
J young Lee 🐛
Filip Weiss 🐛
Marius Gundersen 🐛
Syed Aman Ali 🐛
Axel Ingadi 🐛
AndyP 🐛
ishanVaghasiya 🐛
Nico Martinucci 🐛
Shiv Bhonde | shivbhonde.eth 🐛
fritzmonkey 🐛
Rodrigo Mesquita 🐛
Moshe Simantov 🐛
Beka 🐛
Abdallah Alkaser 🐛 💻
Carl Smith 🐛
Orlando Groppo 🐛
Martijn Saly 🐛
Quinn Shanahan 🐛
Antoine Kingue 🐛
Žan Žlender 🐛
Sebastian Dominguez 🐛
James Cowan 🐛
Bayram Ali Basgul 🐛
Wyatt Castaneda 🐛
Tim Neville 🐛
Thomas Pigarelli 🐛
James Herdman 🐛
Grzegorz Pociejewski 🐛
René Verheij 🐛
PatrykKuniczak 🐛
Paolo Božac 🐛
Rein 🐛
FloorianB 🐛
Xuan Hung 🐛
Monawwar Abdullah 🐛
Haroldo de Oliveira Pinheiro 🐛
Tamjid Ahmed 🐛
jv-lopez 🐛
Callum Macrae 🐛
bywater529 🐛
Kevin He 🐛
FredericoGauz 🐛
Jonathan "JonLem" Lemos 🐛
Xegulon 🐛
Tom Smedley 🐛
lightbluepoppy 🐛
Derek Oware 🐛
Lance Gliser 🐛
J. Lewis 🐛
Yair 🐛
Nishchit 🐛
Devofy 🐛
Josh Guyette 🐛
Dora Li 🐛
Kristian Gerardsson 🐛
James Powell 🐛
Boaz Poolman 🐛
roker15 🐛
Fadhil Ahmad 🐛
Chandler-Zhu 🐛
Nghi Nguyen 🐛
Shravan Sunder 🐛
Johannes5 🐛
sebahhpeya 🐛
Or Nakash 🐛
Erez Makavy 🐛
Andy Merskin 🐛
ChainAlert Bot 🐛
Taylor Morgan 🐛
wisdomabioye 🐛
Samuel Quiñones 🤔
Manuel 💻 🐛
Yurii Rybak 🐛
Yury Demin 🐛 💻
Jon Tewksbury 💻 🐛
Novac Denis 💻 🐛
kyrylo-soulandwolf 💻 🐛
Miguel Isidoro 💻
Yuriy Gromchenko 💻
Jacob Hummer 🤔
Kyrylo Melnychuk 🖋 💻
Luma 💻
Eliya Cohen 💻
Igor Sukharev 🐛
pookmish 🤔
metav-drimz 🤔
luckrnx09 💻
Hubert Kuczmierczyk 🤔 👀
dandubya 📖
Darwish 💻
Jonathan Raoult 🐛 👀
This project follows the all-contributors specification (emoji key). Contributions of any kind welcome!
💞 Donate
If you find this piece of software helpful, please consider a donation. Any amount is greatly appreciated.
juliencrn/usehooks-ts thuộc nhóm Frontend trên TopGit, cùng 9 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về juliencrn/usehooks-ts ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/juliencrn/usehooks-ts là nguồn chính thức.
juliencrn/usehooks-ts có phải mã nguồn mở không?
Có — juliencrn/usehooks-ts phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/juliencrn/usehooks-ts.
juliencrn/usehooks-ts là gì?
juliencrn/usehooks-ts (juliencrn/usehooks-ts) là dự án TypeScript trên GitHub. Theo mô tả gốc: React hook library, ready to use, written in Typescript.
juliencrn/usehooks-ts so với các dự án Frontend khác thế nào?
juliencrn/usehooks-ts được TopGit xếp vào nhóm Frontend, với 7.9k sao GitHub và viết bằng TypeScript. Xem trang chủ đề Frontend trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Vì sao juliencrn/usehooks-ts được xếp vào nhóm Frontend?
TopGit xếp juliencrn/usehooks-ts vào nhóm Frontend dựa trên GitHub topics và mô tả của repo (gắn thẻ: "hook", "hooks", "mdx"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về usehooks-ts?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về usehooks-ts.