Skip to content

Instantly share code, notes, and snippets.

@giovanniantonaccio
Created January 31, 2020 14:33
Show Gist options
  • Save giovanniantonaccio/ef5bfbd5b5138bdf0bf29fd89cca6348 to your computer and use it in GitHub Desktop.
Save giovanniantonaccio/ef5bfbd5b5138bdf0bf29fd89cca6348 to your computer and use it in GitHub Desktop.
VS Code React Snippets
{
"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