mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
Update readme.md
This commit is contained in:
parent
46bfc167ee
commit
45ed3ac3ec
@ -5,6 +5,8 @@ React state is in a bit of a mess. Hundreds of solutions out there, the establis
|
||||
#### Create a store (or multiple, up to you...)
|
||||
|
||||
```jsx
|
||||
import create from 'msga'
|
||||
|
||||
// Name your store anything you like, but remember, it's a hook!
|
||||
const useStore = create(set => ({
|
||||
// Everything in here is your state
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user