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.
This is not a typical article. Now I support the project on React and have encountered this. So I decided to share
useFetch - Fetch API in the implementation of the hook.
useApi - Same as useFetch, only made with axios.
useWindowScrollPosition - Helps to track the position of the cursor.
useLocalStorage - Various operations with local storage.
useDocumentTitle - Allows you to set the title of the document.
useOnlineStatus - Check the status of the network.
useClippy - Adding to the clipboard.
useScript - Allows you to dynamically download external scripts.
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! 😉