5 Awesome React Hooks ⚛️

TLDRReact use lazy load image uses the Intersection Observer API to provide a performant solution to lazy loading images. UseOnClickOutside is one of the bests, with this hook, you can easily capture outside clicks from an element, very useful for a modal for example. UseDocumentTitle allows you to set the page title simple calling it from a component and passing the title string.

2m read time From dev.to
Post cover image
Table of contents
Image lazy load 🌄Outside click hook 🖱Get browser location 🌎Read from and Write to clipboard ⌨️Set document title 👨🏽‍💻
2 Comments

Sort: