Created
January 9, 2018 08:09
-
-
Save mweststrate/c68f2bb963c00e2e76914547184f291f to your computer and use it in GitHub Desktop.
immer-producer-1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import produce from "immer" | |
const nextState = produce(currentState, draft => { | |
// empty function | |
}) | |
console.log(nextState === currentState) // true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment