We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e3c9ce commit 9251f22Copy full SHA for 9251f22
+web-react-mode/useState
@@ -3,8 +3,5 @@
3
# name: useState
4
# key: useState
5
# --
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});
+const [${1:state}, set${1:$(s-upper-camel-case yas-text)}] = setState(${2:initialState});
10
$0
0 commit comments