Skip to content
Myr

Fix typo in readme.md

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Ari Lotter · committed by GitHub · parent 0a80c2c · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:readme.md+1 added-1 removed
395 unmodified lines
396// Multiple mutations397produce(draft => void (draft.user.age += 1, draft.user.height = 186))398```399400Code style is highly personal, but for code bases that are to be understood by many, we recommend to stick to the classic `draft = { draft.user.age += 1}` to avoid cognitive overhead.400Code style is highly personal, but for code bases that are to be understood by many, we recommend to stick to the classic `draft => { draft.user.age += 1}` to avoid cognitive overhead.401402## TypeScript or Flow403404The Immer package ships with type definitions inside the package, which should be picked up by TypeScript and Flow out of the box and without further configuration.
219 unmodified lines