docs(readme): fix import of "produce" function (#1844)

This commit is contained in:
Leo López 2023-06-06 19:41:19 -06:00 committed by GitHub
parent eb5ec74c3d
commit 618c2e5a76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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' } } },