@httpstate/react 0.0.14 → 0.0.15

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 +3 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -21,9 +21,9 @@ We'll use `45fb3654-0e92-44da-aa21-ca409c6bdab3` or `45fb36540e9244daaa21ca409c6
21
21
  Use `useHttpState(uuid)` as you would do with a React `useState()` hook.
22
22
 
23
23
  ```tsx
24
- const [data, setData] = useHttpState('45fb36540e9244daaa21ca409c6bdab3');
24
+ const [state, setState] = useHttpState('45fb36540e9244daaa21ca409c6bdab3');
25
25
 
26
- setData('Hi! 👋🏻');
26
+ setState('Hi! 👋🏻');
27
27
  ```
28
28
 
29
29
  That's it! 🐙
@@ -37,7 +37,7 @@ That's it! 🐙
37
37
  - `uuid`: The UUID v4 string.
38
38
 
39
39
  - Returns `[state, setState]` where:
40
- - `state`: The current data (undefined | string).
40
+ - `state`: The current value (undefined | string).
41
41
  - `setState`: The set function that lets you update the state to a different value.
42
42
 
43
43
  ---
package/package.json CHANGED
@@ -29,5 +29,5 @@
29
29
  },
30
30
  "type": "module",
31
31
  "types": "dist/useHttpState.d.ts",
32
- "version": "0.0.14"
32
+ "version": "0.0.15"
33
33
  }