@siberiacancode/reactuse 0.2.17 → 0.2.18

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 +4 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -25,16 +25,16 @@ npm install @siberiacancode/reactuse
25
25
  ```
26
26
 
27
27
  ```tsx
28
- import { useCounter } from '@siberiacancode/reactuse';
28
+ import { useCounter } from "@siberiacancode/reactuse";
29
29
 
30
30
  function App() {
31
31
  const counter = useCounter(0);
32
32
 
33
33
  return (
34
34
  <div>
35
- <h1>Count: {const.value}</h1>
36
- <button onClick={() => const.inc()}>+1</button>
37
- <button onClick={() => const.dec()}>-1</button>
35
+ <h1>Count: {counter.value}</h1>
36
+ <button onClick={() => counter.inc()}>+1</button>
37
+ <button onClick={() => counter.dec()}>-1</button>
38
38
  </div>
39
39
  );
40
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@siberiacancode/reactuse",
3
- "version": "0.2.17",
3
+ "version": "0.2.18",
4
4
  "description": "The ultimate collection of react hooks",
5
5
  "author": {
6
6
  "name": "SIBERIA CAN CODE 🧊",