mirror of
https://github.com/streamich/react-use.git
synced 2025-12-08 18:02:14 +00:00
docs: ✏️ add State reference
This commit is contained in:
parent
1bb22ab854
commit
6124e4b177
@ -22,9 +22,7 @@
|
||||
<br />
|
||||
<br />
|
||||
<br />
|
||||
<pre>
|
||||
npm i <a href="https://www.npmjs.com/package/react-use">react-use</a>
|
||||
</pre>
|
||||
<pre>npm i <a href="https://www.npmjs.com/package/react-use">react-use</a></pre>
|
||||
<br />
|
||||
<br />
|
||||
</div>
|
||||
@ -32,7 +30,7 @@ npm i <a href="https://www.npmjs.com/package/react-use">react-use</a>
|
||||
|
||||
## Reference
|
||||
|
||||
- State
|
||||
- [__State__](./docs/State.md)
|
||||
- [`useToggle`](./docs/useToggle.md) — tracks state of a boolean.
|
||||
- [`useCounter`](./docs/useCounter.md) — tracks state of a number.
|
||||
- [`useList`](./docs/useList.md) — tracks state of an array.
|
||||
|
||||
3
docs/State.md
Normal file
3
docs/State.md
Normal file
@ -0,0 +1,3 @@
|
||||
# State
|
||||
|
||||
*"State Hooks"* allow you to easily manage state of booleans, arrays, and maps.
|
||||
Loading…
x
Reference in New Issue
Block a user