Skip to content

Commit

Permalink
README :: install section
Browse files Browse the repository at this point in the history
  • Loading branch information
koab authored Sep 8, 2020
1 parent 27934c7 commit 456eac0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# react-use-static
A react hook which can keep static state between functional components.

# Install

```npm install @koab/react-use-static``` or ```yarn add @koab/react-use-static```

# Example usage

Basically you need to assign an unique key to separate states between component types via second parameter. The third parameter is for persisting data even after each instance of component is unmounted.
Expand Down

0 comments on commit 456eac0

Please sign in to comment.