DEV Community

Cover image for πŸ›‘ Why You Need Stop Create Hooks in React?πŸͺπŸŽ£
Martins Gouveia
Martins Gouveia

Posted on β€’ Edited on

1 1

πŸ›‘ Why You Need Stop Create Hooks in React?πŸͺπŸŽ£

React Hooks are functions that let you use React features (like state and lifecycle methods) in functional components. They enable cleaner, simpler, and more readable code.

Sorry for the clickbait (the evil of this century πŸ˜­πŸ˜‚πŸ˜‚).

But the idea of ​​this short post is to stop you from reinventing the wheel by creating Hooks πŸͺ. There are libraries and repositories that provide a variety of community-tested hooks that you can simply copy and paste or import into your project.

1. Mantine Hooks

A set of react hooks for state and UI management

Image description

Source: https://www.npmjs.com/package/@mantine/hooks

2. AHooks

Built and Maintained by Alibaba, aHooks is a high-quality & reliable React Hooks library.

Source: https://ahooks.pages.dev/

3. React Use

Reactuse is a comprehensive collection of custom React Hooks designed to supercharge your functional components!.

Image description

You can easily unlock the full potential of React Hooks and leverage their power to create reusable and efficient code.

I recommend πŸ˜ƒ!

Source: https://www.reactuse.com/

3. UseHooks

With intuitive UI, UseHooks is a collection of modern, server-safe React hooks

To install, type: npm i @uidotdev/usehooks

Image description

Source: https://usehooks.com/

Recommendations:

Image description

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (4)

Collapse
 
manuelbento19 profile image
Manuel Bento β€’ β€’ Edited

Nice article, BrΓ΄. The only one I knew about but didn't use is:
hooks.scriptkavi.com/docs/hooks/la...

Collapse
 
martygo profile image
Martins Gouveia β€’

Hey! You here? My day has been made πŸ₯°. I'll check this one out too bro. Thanks.πŸ™

Collapse
 
manuelbento19 profile image
Manuel Bento β€’

Hahahah don't exaggerate kkkkk. My english isn't good enough to continue this talk lol, but yes, i'm here... Bentooo is here.
You have nice tech articles and i think it's always good2learn from those who already know...

Att.: i'm not using GTranslator kkkkk

Thread Thread
 
martygo profile image
Martins Gouveia β€’

Manuel Bento, the G.O.A.T πŸ˜ƒπŸ˜…. Thanks bro.

Image of Docusign

πŸ› οΈ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay