From 5afd8232c33faf1a87bde0bd81ec23fdcce60f45 Mon Sep 17 00:00:00 2001 From: Daniel Loomer Date: Wed, 17 Mar 2021 23:47:29 -0400 Subject: [PATCH] update outdated readme example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b22e1ac..0753706 100644 --- a/README.md +++ b/README.md @@ -20,10 +20,10 @@ const decrement = () => set({ count: x => x - 1 }) // reset count when it reaches 11 subscribe( + s => s.count, count => { if (Math.abs(count) > 10) set({ count: 0 }) - }, - s => s.count + } ) const App = () => {