-
-
Save CarsonMcKinstry/eeae4fe5717bddc80933f8e166541158 to your computer and use it in GitHub Desktop.
Snippet for React *EXPERIMENTAL* `useState()` hook -- See https://reactjs.org/hooks
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": { | |
| "prefix": "us", | |
| "scope": "javascript,javascriptreact,typescript,typescriptreact", | |
| "body": [ | |
| "const [${1}, set${1/(.*)/${1:/capitalize}/}] = useState($2);", | |
| "$0" | |
| ], | |
| "description": "(EXPERIMENTAL) React: Use State. See https://reactjs.org/hooks" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment