Skip to content

Commit

Permalink
Merge 58dde02 into 89e0d24
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregjarvez committed Jan 8, 2018
2 parents 89e0d24 + 58dde02 commit 998ec55
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file added images/immer_new.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The basic idea is that you will apply all your changes to a temporarily _draftSt
Once all your mutations are completed, immer will produce the _nextState_ based on the mutations to the draft state.
This means that you can interact with your data by simply modifying it, while keeping all the benefits of immutable data.

![immer.png](images/immer.png)
![immer.png](images/immer_new.png)

Using immer is like having a personal assistant; he takes a letter (the current state), and gives you a copy (draft) to jot changes onto. Once you are done, the assistant will take your draft and produce the real immutable, final letter for you (the next state).

Expand Down

0 comments on commit 998ec55

Please sign in to comment.