mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
docs(typescript): fix minor grammar issue (#1009)
This commit is contained in:
parent
2b698fb249
commit
e220737042
@ -2,7 +2,7 @@
|
||||
|
||||
## Basic usage
|
||||
|
||||
When using TypeScript you just have to make a tiny change that instead of writing `create(...)` you'll have to write `create<T>()(...)` where `T` would be type of the state so as to annotate it. Example...
|
||||
The difference when using TypeScript is instead of writing `create(...)`, you have to write `create<T>()(...)` where `T` would be type of the state so as to annotate it. Example...
|
||||
|
||||
```ts
|
||||
import create from 'zustand'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user