Last active
October 15, 2024 22:27
-
-
Save samselikoff/846f48370086fc502a66a7df7dd0a7cb to your computer and use it in GitHub Desktop.
A VSCode snippet that lets you type `ush` to define some new React 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
Show hidden characters
{ | |
"Use state": { | |
"scope": "javascriptreact,typescriptreact", | |
"prefix": "ush", | |
"body": [ | |
"let [${1}, set${1/(.*)/${1:/capitalize}/}] = useState($2);", | |
], | |
"description": "useState()" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment