mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
docs: update persisting-store-data.md (#1993)
This commit is contained in:
parent
49d43b7ddd
commit
5493959646
@ -663,7 +663,7 @@ except for writing `create<State>()(...)` instead of `create(...)`.
|
||||
|
||||
```tsx
|
||||
import { create } from 'zustand'
|
||||
import { persist } from 'zustand/middleware'
|
||||
import { persist, createJSONStorage } from 'zustand/middleware'
|
||||
|
||||
interface MyState {
|
||||
bears: number
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user