Skip to content

Commit 6124e4b

Browse files
committed
docs: ✏️ add State reference
1 parent 1bb22ab commit 6124e4b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,15 @@
2222
<br />
2323
<br />
2424
<br />
25-
<pre>
26-
npm i <a href="https://www.npmjs.com/package/react-use">react-use</a>
27-
</pre>
25+
<pre>npm i <a href="https://www.npmjs.com/package/react-use">react-use</a></pre>
2826
<br />
2927
<br />
3028
</div>
3129

3230

3331
## Reference
3432

35-
- State
33+
- [__State__](./docs/State.md)
3634
- [`useToggle`](./docs/useToggle.md) &mdash; tracks state of a boolean.
3735
- [`useCounter`](./docs/useCounter.md) &mdash; tracks state of a number.
3836
- [`useList`](./docs/useList.md) &mdash; tracks state of an array.

docs/State.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# State
2+
3+
*"State Hooks"* allow you to easily manage state of booleans, arrays, and maps.

0 commit comments

Comments
 (0)