loading...
Cover image for A small collection of useful React hooks.

A small collection of useful React hooks.

dmtrshat profile image Dmitry Shatokhin Updated on ・1 min read

I often have to find different implementations of the same things in projects. I singled out for myself the most common and leave links to ready-made solutions.

REMARK
This is not a typical article. Now I support the project on React and have encountered this. So I decided to share

useFetch

useFetch - Fetch API in the implementation of the hook.

useApi

useApi - Same as useFetch, only made with axios.

useWindowScrollPosition

useWindowScrollPosition - Helps to track the position of the cursor.

useLocalStorage

useLocalStorage - Various operations with local storage.

useDocumentTitle

useDocumentTitle - Allows you to set the title of the document.

useOnlineStatus

useOnlineStatus - Check the status of the network.

useClippy

useClippy - Adding to the clipboard.

useScript

useScript - Allows you to dynamically download external scripts.


Afterword.

Thank you very much for your attention. I hope it was useful for you πŸ™
Follow me, it makes me write new articles 😌
I'd be happy for your feedback.
C u! πŸ˜‰

Buy Me A Coffee

Posted on May 29 by:

dmtrshat profile

Dmitry Shatokhin

@dmtrshat

πŸ‘¨β€πŸ’» Helping Quarians create the Geths

Discussion

markdown guide
 

This is great! Thanks for sharing Dmitry 😊

 
 
 

I'm very glad to hear it!
Thank you 😌

 
 

Aww, thank you πŸ™
I'll definitely look through this page πŸ˜‰