Skip to content

Commit

Permalink
Merge pull request #2 from Unisay/patch-1
Browse files Browse the repository at this point in the history
Fix a mistake in README.md
  • Loading branch information
katsujukou authored Jan 21, 2025
2 parents 780ec06 + f8dbc92 commit be7c7fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ reducer st = case _ of
Decrement -> st - 1
```

And then we use the `makeStore'` function from this library. Note that `makeStore'` itself is not a hook function, but a **higher-order hook**, because it accepts some inputs and produce a hook function. The first argument is the **unique** identifier of our store. The second argument is the initial state value.
And then we use the `makeStore'` function from this library. Note that `makeStore'` itself is not a hook function, but a **higher-order hook**, because it accepts some inputs and produce a hook function. The first argument is the **unique** identifier of our store. The third argument is the initial state value.

**Important:** Avoid creating multiple stores with the same ID to prevent conflicts.

Expand Down

0 comments on commit be7c7fc

Please sign in to comment.