Skip to content

Commit 9251f22

Browse files
committed
Use s-upper-camel-case in useState snippet
1 parent 9e3c9ce commit 9251f22

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

+web-react-mode/useState

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,5 @@
33
# name: useState
44
# key: useState
55
# --
6-
const [${1:state}, set${1:$(if (>= (length yas-text) 1)
7-
(concat (upcase (substring yas-text 0 1))
8-
(substring yas-text 1))
9-
"")}] = setState(${2:initialState});
6+
const [${1:state}, set${1:$(s-upper-camel-case yas-text)}] = setState(${2:initialState});
107
$0

0 commit comments

Comments
 (0)