added vscode React snippet
This commit is contained in:
parent
98fb809911
commit
557bc6ab98
@ -20,5 +20,22 @@
|
|||||||
"",
|
"",
|
||||||
"export default $1;"
|
"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",
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user