Skip to content

Commit b2b204b

Browse files
authored
fix: capitalize first letter on use state snippet (#72)
1 parent 99ac371 commit b2b204b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension/snippets/react-typescript.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
},
4646
"rust": {
4747
"prefix": "rust",
48-
"body": ["const [${1}, set${1}] = useState(${2});"],
48+
"body": ["const [${1}, set${1/(.*)/${1:/capitalize}/}] = useState(${2});"],
4949
"description": "TypeScript: useState hook"
5050
},
5151
"ruct": {

0 commit comments

Comments
 (0)