react-hook
use-timer
react-hook | use-timer | |
---|---|---|
3 | 1 | |
1,386 | 192 | |
- | - | |
0.0 | 0.0 | |
about 1 month ago | about 1 year ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
react-hook
-
How to use Resize Observer with React
Our requirements look good and pretty strict, uh? But don't worry, we can deal with all of them using the beautiful and very easy-to-use useResizeObserver hook from the beautiful react-hook library by Jared Lunde. According to it's documentation and my tests and usage as well it meets all our requirements:
-
Concurrent-safe version of useLatest in React?
const useLatest = (current: T) => { const storedValue = React.useRef(current) React.useEffect(() => { storedValue.current = current }) return storedValue} From https://github.com/jaredLunde/react-hook/blob/master/packages/latest/src/index.tsx
-
Best Practices for Publishing Hooks
Here are two solid examples: https://github.com/jaredLunde/react-hook https://github.com/juliencrn/useHooks.ts
use-timer
-
Reactjs Timer
Basically, I would do this with useTimer hook which basically does a setInterval to calculate time. As for inspiration take a look at this use-timer.
What are some alternatives?
use-debounce - A debounce hook for react
web - React hooks done right, for browser and SSR.
usehooks.ts - React hook library, ready to use, written in Typescript. [Moved to: https://github.com/juliencrn/usehooks-ts]
react-use-hotjar - Adds Hotjar capabilities as custom hooks such as init, identify and stateChange
goodtimer - A setTimeout/setInterval for Humans (and so much more)
react-gtm-hook - Easily manage the Google Tag Manager via Hook
tokyo-3 - Themed Pomodoro Timer
use-color - 🛼🛼🛼 The powerful color hook that all designers deserve. ✨ Parse and stringify that just works & 🦾 Strict type checking at compile time
use-http - 🐶 React hook for making isomorphic http requests
resize-observer - Polyfills the ResizeObserver API.
rooks - Essential React custom hooks ⚓ to super charge your components!