Skip to content

Commit

Permalink
update outdated readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzetsu committed Mar 18, 2021
1 parent 7e09ef8 commit 5afd823
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => {
Expand Down

0 comments on commit 5afd823

Please sign in to comment.