React Hook to detect a hover on an any React Element
npm install @customhooks/use-hoverReact Hook to detect a hover on an any React element.
``bash`
npm install @customhooks/use-hover
or
`bash`
yarn add @customhooks/use-hover
useHover() have a one argument like this : useHover(onHover)
> onHover is must be function.
`jsx
import React from "react";
import useHover from "@customhooks/use-hover";
function App() {
const onHover = () => console.log("Hello World!");
const el = useClick(onHover);
return