@am-hooks/use-mouseleave

1.0.0 • Public • Published

useBeforeLeave

마우스가 벗어날 때 실행하는 것

Installation

yarn

yarn add @am-hooks/use-mouseleave

npm

npm i @am-hooks/use-mouseleave

Usage

import React from "react";
import useBeforeLeave from "@am-hooks/use-mouseleave";

const App = () => {
  const beForLife = () => {
    console.log("Pls don`t leave");
  };
  useBeforeLeave(beForLife);
  
  return <h1>HELLO</h1>;
}



Readme

Keywords

Package Sidebar

Install

npm i @am-hooks/use-mouseleave

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

1.59 kB

Total Files

4

Last publish

Collaborators

  • wam-6577