@am-hooks/use-hover
v1.0.0
Published
Detect when mouse moves
Downloads
2
Maintainers
Readme
useHover
마우스를 올렸을 때 감지
Installation
yarn
yarn add @am-hooks/use-hover
npm
npm i @am-hooks/use-hover
Usage
import React from "react";
import useHover from "@am-hooks/use-hover";
const App = () => {
const sayHover = () => console.log("마우스 올림");
const title = useHover(sayHover);
return <h1 ref={title}>HELLO</h1>;
}