Last active
April 11, 2017 22:30
-
-
Save cschleiden/5da5a3f8d1c2076a8c8f119b9e69dfeb to your computer and use it in GitHub Desktop.
VS Code React snippets to destructure props/state
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
{ | |
"render, destructure props": { | |
"prefix": "cp", | |
"body": [ | |
"const { $0 } = this.props;" | |
] | |
}, | |
"render, destructure state": { | |
"prefix": "cs", | |
"body": [ | |
"const { $0 } = this.state;" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment