docs: update persisting-store-data.md (#1993)

This commit is contained in:
Aykut Kardaş 2023-08-15 02:30:19 +03:00 committed by GitHub
parent 49d43b7ddd
commit 5493959646
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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