mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
docs(readme): fix import of "produce" function (#1844)
This commit is contained in:
parent
eb5ec74c3d
commit
618c2e5a76
@ -261,7 +261,7 @@ const Component = () => {
|
||||
Reducing nested structures is tiresome. Have you tried [immer](https://github.com/mweststrate/immer)?
|
||||
|
||||
```jsx
|
||||
import produce from 'immer'
|
||||
import { produce } from 'immer'
|
||||
|
||||
const useLushStore = create((set) => ({
|
||||
lush: { forest: { contains: { a: 'bear' } } },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user