The Wayback Machine - https://web.archive.org/web/20200614101959/https://github.com/topics/react-hook
Skip to content
#

react-hook

Here are 172 public repositories matching this topic...

adeelibr
adeelibr commented Feb 11, 2019

We need to come up with an API design that uses the event listener mousemove

// usage
const { x, y } = useMouseMove();
const useMouseMove = () => {
    const [coords, setCoords] = React.useState({ 0, 0 });
    const onHandleMouseMove = event => {
         setCoords({ x, y }) 
    };
    React.useEffect(() => {
       window.addEventListener()
       return () => 

Improve this page

Add a description, image, and links to the react-hook topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the react-hook topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.