Created
January 31, 2020 14:33
-
-
Save giovanniantonaccio/ef5bfbd5b5138bdf0bf29fd89cca6348 to your computer and use it in GitHub Desktop.
VS Code React Snippets
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
{ | |
"useStateHook": { | |
"prefix": "s", | |
"body": [ | |
"const[$1, use${1/(.*)/${1:/capitalize}/}] = useState($2);", | |
"$0" | |
], | |
"description": "Create useState hook" | |
}, | |
"useStateHookVariables": { | |
"prefix": "sr", | |
"body": [ | |
"const[$1, use${1/(.*)/${1:/capitalize}/}]" | |
], | |
"description": "Replace useState hook variables" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment