Skip to content

Commit

Permalink
fix(docs): syntax error, improve examples
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroBernalG committed Jun 2, 2019
1 parent f3390c3 commit 8bbe9d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/useMouse.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ const Demo = () => {
const {docX, docY, posX, posY, elX, elY, elW, elH} = useMouse(ref);

return (
<div ref={element}>
<div ref={ref}>
<div>Mouse position in document - x:{docX} y:{docY}</div>
<div>Mouse position in element - x:{posX} y:{posY}</div>
<div>Element position - x:{elX} y:{elY}</div>
<div>Mouse position in element - x:{elX} y:{elY}</div>
<div>Element position- x:{posX} y:{posY}</div>
<div>Element dimensions - {elW}x{elH}</div>
</div>
);
Expand Down

0 comments on commit 8bbe9d8

Please sign in to comment.