Skip to content

Commit

Permalink
fix: capitalize first letter on use state snippet (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavocadev committed May 23, 2022
1 parent 99ac371 commit b2b204b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension/snippets/react-typescript.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
},
"rust": {
"prefix": "rust",
"body": ["const [${1}, set${1}] = useState(${2});"],
"body": ["const [${1}, set${1/(.*)/${1:/capitalize}/}] = useState(${2});"],
"description": "TypeScript: useState hook"
},
"ruct": {
Expand Down

0 comments on commit b2b204b

Please sign in to comment.