-
-
Save sommeeeer/e0de0819a0bde51d09ac20c3c8aca2bc 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 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
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