Skip to content

Commit

Permalink
docs: fix store initialisation syntax and language in usage with othe…
Browse files Browse the repository at this point in the history
…r libraries
  • Loading branch information
samrith-s committed Jan 3, 2025
1 parent 6c9ca8b commit e06d460
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/src/content/docs/guides/using-with-other-libraries.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,12 @@ First, let's create a store with an initial state.
```ts
import { Store } from "@genshi/core";

const [store, useStore] = new Store({
const store = new Store({
count: 0,
});
```

The `createStore` function returns a tuple with an instance of `Store` class and the `useStore` hook.

Now, we can define our actions and effects.
The `Store` class creates an instance of the store. It also provides methods to define and dispatch actions and effects.

### Defining actions

Expand Down

0 comments on commit e06d460

Please sign in to comment.