on-connected
v0.0.0
Published
a zero-dependency web component that notifies you when connected and disconnected from the DOM
Downloads
7
Maintainers
Readme
on-connected
a zero-dependency web component that notifies you when connected and disconnected from the DOM
installation
npm install on-connected
usage
<on-connected
fn={() => {
console.log("connected");
return () => {
console.log("disconnected");
};
}}
/>