0.0.8 • Published 1 year ago

use-mouse-location v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago