react-hook
react-use
react-hook | react-use | |
---|---|---|
3 | 58 | |
1,386 | 40,451 | |
- | - | |
0.0 | 6.2 | |
about 1 month ago | 10 days ago | |
TypeScript | TypeScript | |
MIT License | The Unlicense |
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
react-use
-
Ultimate Guide & Resources to Enhancing Your ReactJS Skills || 16 GitHub repositories
Discover a collection of custom React hooks for supercharging your app's functionality.
- small and efficient useBreakpoints hook
-
UseHooks โ A Collection of Server Component Safe React Hooks
How do these compare with the current heavyweight library?
https://github.com/streamich/react-use
-
This package simplifies async data handling in your React apps
What's the benefit over useAsync and friends?
-
Manipulating nested objects inside state
try this one: https://github.com/streamich/react-use/blob/master/docs/useSetState.md
-
5 Great Custom Hooks For Your React Project
One use case for the useWindowSize hook, which belongs to react-use, is for responsive design. The useWindowSize hook keeps track of the size of the browser window which makes it possible to apply different styles (layouts, displays, etc.) to user interfaces at different sizes. It returns an object containing the current width and height of the window.
-
7 Really Helpful GitHub Repositories for React Developers๐๐ฏ
Link: https://github.com/streamich/react-use
-
16 Github Repos to master React
10-) Sometimes when hooks are not enough for you, you may feel the need to write Custom Hooks. A great Custom Hook List that will make your job easier react-use beautiful-react-hooks
-
UseContext React: Data doesn't transfer from Login component to SideBar component
What you are looking for can be achieved a few ways. React-use has global context hook that is pretty handy but I prefer to store the data in my db, then fetch the data into your sidebar component. React-use
-
React-use (React Hooks)
React-use is the package that provides many useful react hooks that we can use to build the UI more efficiently. It provides the hooks related sensors, ui, animations, side-effects, lifecycles, state and etc.
What are some alternatives?
use-debounce - A debounce hook for react
usehooks-ts - React hook library, ready to use, written in Typescript.
usehooks.ts - React hook library, ready to use, written in Typescript. [Moved to: https://github.com/juliencrn/usehooks-ts]
rooks - Essential React custom hooks โ to super charge your components!
react-use-hotjar - Adds Hotjar capabilities as custom hooks such as init, identify and stateChange
milkdown - ๐ผ Plugin driven WYSIWYG markdown editor framework.
react-gtm-hook - Easily manage the Google Tag Manager via Hook
JSDoc - An API documentation generator for JavaScript.
use-color - ๐ผ๐ผ๐ผ The powerful color hook that all designers deserve. โจ Parse and stringify that just works & ๐ฆพ Strict type checking at compile time
react-helmet - A document head manager for React
resize-observer - Polyfills the ResizeObserver API.
joystick - A full-stack JavaScript framework for building stable, easy-to-maintain apps and websites.