Skip to content

Commit

Permalink
Update README.md - Follow docs
Browse files Browse the repository at this point in the history
just noticed a little bit of inconsistency in the doc and README.md

https://zustand.docs.pmnd.rs/integrations/persisting-store-data
  • Loading branch information
rifqimfahmi authored Jan 31, 2025
1 parent bc3e94e commit 18e6389
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 @@ -293,7 +293,7 @@ You can persist your store's data using any kind of storage.
import { create } from 'zustand'
import { persist, createJSONStorage } from 'zustand/middleware'

const useFishStore = create(
const useFishStore = create()(
persist(
(set, get) => ({
fishes: 0,
Expand Down

0 comments on commit 18e6389

Please sign in to comment.