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 c615ab3 commit 4b9e7e1Copy full SHA for 4b9e7e1
snippets/snippets.json
@@ -1235,10 +1235,11 @@
1235
"prefix": "useEffect",
1236
"body": [
1237
"useEffect(() => {",
1238
+ "\t${1:effect}",
1239
"\treturn () => {",
- "\t\t${1:effect}",
1240
+ "\t\t${2:cleanup}",
1241
"\t};",
- "}, [${2:input}])"
1242
+ "}, [${3:input}])"
1243
]
1244
},
1245
"useContext": {
@@ -1290,10 +1291,11 @@
1290
1291
"prefix": "useLayoutEffect",
1292
1293
"useLayoutEffect(() => {",
1294
1295
1296
1297
"\t},",
- "\t[${2:input}]",
1298
+ "\t[${3:input}]",
1299
"})"
1300
1301
}
0 commit comments