aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorChristian Petersen <fnky@users.noreply.github.com>2019-05-05 22:19:14 +0300
committerJamie Kyle <me@thejameskyle.com>2019-05-05 22:19:14 +0300
commit9ff30ea04616c066c3f439a3732a930c20d53248 (patch)
treebd4c73acfe3811a832302269c7ba293f66dc0c15 /README.md
parent641c7e871642539e0c326857bb4ab7c35d6e5676 (diff)
docs: fix example for Keeping Containers Small (#4)
Fixes the example for the **Tip #2: Keep Containers Small** section where `Counter.useContainer` was used instead of `Count.useContainer`.
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 24f3945..9686534 100644
--- a/README.md
+++ b/README.md
@@ -306,7 +306,7 @@ function useCount() {
let Count = createContainer(useCount)
function useCounter() {
- let [count, setCount] = Counter.useContainer()
+ let [count, setCount] = Count.useContainer()
let decrement = () => setCount(count - 1)
let increment = () => setCount(count + 1)
let reset = () => setCount(0)