@shelf/react-outside-click 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -23,7 +23,7 @@ $ yarn add @shelf/react-outside-click
23
23
  ```js
24
24
  import { ClickOutsideProvider } from '@shelf/react-outside-click';
25
25
 
26
- const App = () => {
26
+ const Component = () => {
27
27
  const onOutsideClick = () => {
28
28
  console.log('Clicked outside')
29
29
  };
@@ -75,7 +75,7 @@ import { useClickOutside } from '@shelf/react-outside-click';
75
75
  const Component() {
76
76
  const ref = useRef(null)
77
77
 
78
- const handleClickInside = () => {
78
+ const handleClickOutside = () => {
79
79
  console.log('Clicked outside')
80
80
  }
81
81
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shelf/react-outside-click",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "React library for handling outside clicks of a specified element",
5
5
  "license": "MIT",
6
6
  "author": {