Skip to content

Commit

Permalink
updated getting-started doc with more examples (pmndrs#2348)
Browse files Browse the repository at this point in the history
* updated readme with more examples

* moved example to docs from readme

* formatted code with Prettier

---------

Co-authored-by: Ankit Sagar <[email protected]>
  • Loading branch information
2 people authored and onlined committed Feb 28, 2024
1 parent 87a42c1 commit d691c61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/getting-started/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const useStore = create((set) => ({
bears: 0,
increasePopulation: () => set((state) => ({ bears: state.bears + 1 })),
removeAllBears: () => set({ bears: 0 }),
updateBears: (newBears) => set({ bears: newBears }),
}))
```

Expand Down

0 comments on commit d691c61

Please sign in to comment.