diff options
author | Christian Petersen <fnky@users.noreply.github.com> | 2019-05-05 22:19:14 +0300 |
---|---|---|
committer | Jamie Kyle <me@thejameskyle.com> | 2019-05-05 22:19:14 +0300 |
commit | 9ff30ea04616c066c3f439a3732a930c20d53248 (patch) | |
tree | bd4c73acfe3811a832302269c7ba293f66dc0c15 /README.md | |
parent | 641c7e871642539e0c326857bb4ab7c35d6e5676 (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.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |