Skip to content

Commit 2a0c3cf

Browse files
author
Henrik Lissner
authored
Merge pull request #37 from shkodm/react-fixes
Fix react snippet
2 parents 98f968c + f3417b3 commit 2a0c3cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

+web-react-mode/useState

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
# name: useState
44
# key: useState
55
# --
6-
const [${1:state}, set${1:$(s-upper-camel-case yas-text)}] = setState(${2:initialState});
6+
const [${1:state}, set${1:$(s-upper-camel-case yas-text)}] = useState(${2:initialState});
77
$0

0 commit comments

Comments
 (0)