Created
January 13, 2018 05:49
-
-
Save Metnew/f3aecc9d20b596b8e3e836cda70210da to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| const mapStateToProps = (state) => { | |
| // BAD!!! | |
| const {something=768} = state.hello && state.hello.world | |
| const {similar=0} = state.let.var && state.let.var.be && state.let.var.be.const | |
| return {variable: similar + something} | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment