const iresh = {
location: "Sri Lanka 🇱🇰",
learning: ["Spring Boot", "Flutter"],
askMeAbout: ["React", "Angular", "Node.js", "C/C++", "PHP", "MySQL"],
contact: "iresheranga2020al@gmail.com",
funFact: "I turn coffee into clean, working code ☕",
};A zero-dependency React hook that correctly handles React Portals, Shadow DOM, and SSR — things most existing packages get wrong.
npm i @kaviresh01/use-clickawayimport { useClickaway } from "@kaviresh01/use-clickaway";
function Dropdown() {
const ref = useRef(null);
useClickaway(ref, () => setOpen(false)); // ✅ Portals, Shadow DOM, SSR — all handled
return <div ref={ref}>...</div>;
}

