From 9ff30ea04616c066c3f439a3732a930c20d53248 Mon Sep 17 00:00:00 2001 From: Christian Petersen Date: Sun, 5 May 2019 21:19:14 +0200 Subject: 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`. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') 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) -- cgit v1.2.3