react-kanca 1.3.0 → 1.3.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.
package/README.md CHANGED
@@ -4,6 +4,8 @@
4
4
 
5
5
  [![NPM](https://img.shields.io/npm/v/react-kanca.svg)](https://www.npmjs.com/package/react-kanca) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
6
6
 
7
+ [react-kanca.com](https://www.react-kanca.com/)
8
+
7
9
  ## Install
8
10
 
9
11
  ```bash
@@ -11,13 +13,20 @@ yarn add react-kanca
11
13
  ```
12
14
 
13
15
  ```bash
14
- npm install --save react-kanca
16
+ npm install react-kanca
17
+ ```
18
+
19
+ ```bash
20
+ pnpm i react-kanca
15
21
  ```
16
22
 
17
23
  ![React Kanca](https://miro.medium.com/v2/resize:fit:1400/format:webp/0*nl2InXMi1tuDmnrv.png)
18
24
 
19
25
  ## Usage
20
26
 
27
+ Storybook Demo:
28
+ [![React Kanca Storybook](https://raw.githubusercontent.com/storybookjs/brand/37c5e9bde5c56b69a8c4312de7d60fb3a9d7de9d/icon/icon-storybook-default.svg)](https://www.react-kanca.com/)
29
+
21
30
  ```jsx
22
31
  import {
23
32
  useBatteryInfo,
@@ -52,7 +61,7 @@ import {
52
61
  useSessionStorage,
53
62
  useStateValidator,
54
63
  useThrottle,
55
- useWindowScroll
64
+ useWindowScroll,
56
65
  useWindowSize,
57
66
  } from 'react-kanca'
58
67
 
@@ -61,7 +70,6 @@ import {
61
70
  const App = () => {
62
71
  const { width, height } = useWindowSize()
63
72
  const isVisible = usePageVisible()
64
- const debounce = useDebounce('React Kanca', 5000)
65
73
 
66
74
  .
67
75
  .