added vscode React snippet

This commit is contained in:
Niklas 2021-05-24 15:27:08 +02:00
parent 98fb809911
commit 557bc6ab98

View File

@ -20,5 +20,22 @@
"",
"export default $1;"
]
},
"FuncComponent":{
"prefix": "rfc",
"description": "React functional component",
"body": [
"import React from \"react\"",
"",
"const $1: React.FC = () => {",
"\treturn (",
"\t\t<div>",
"\t\t\t$1",
"\t\t</div>",
"\t)",
"}",
"",
"export default $1",
]
}
}