Skip to content

Commit

Permalink
updated getting-started doc with more examples (#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 <ankit.sagar@telnesstech.com>
  • Loading branch information
yankycranky and ankit-telness authored Feb 22, 2024
1 parent 08d1376 commit 3c6dc2d
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 3c6dc2d

Please sign in to comment.