docs: ✏️ add State reference

This commit is contained in:
streamich 2018-10-27 13:23:54 +02:00
parent 1bb22ab854
commit 6124e4b177
2 changed files with 5 additions and 4 deletions

View File

@ -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) &mdash; tracks state of a boolean.
- [`useCounter`](./docs/useCounter.md) &mdash; tracks state of a number.
- [`useList`](./docs/useList.md) &mdash; tracks state of an array.

3
docs/State.md Normal file
View File

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