0.0.8 • Published 2 years ago

use-mouse-location v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

useMouseLocation Hook

View Demo

Description

This is a simple react hook that returns the cursor coordinates.

How to install

npm i use-mouse-location
yarn add use-mouse-location
pnpm add use-mouse-location
bun add use-mouse-location

Quickstart

import { useMouseLocation } from 'use-mouse-location'
function App() {
  const { x, y } = useMouseLocation();
  return (
    <div>
      {x + ' ' + y}
    </div>
  )
}

export default App
0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago