Skip to content

Instantly share code, notes, and snippets.

@Ray-56
Last active August 26, 2022 07:54
Show Gist options
  • Save Ray-56/ddac8ad6ef0e525ff1d1a7940bcc02b9 to your computer and use it in GitHub Desktop.
Save Ray-56/ddac8ad6ef0e525ff1d1a7940bcc02b9 to your computer and use it in GitHub Desktop.
Some snippets of Vscode
"Function Component": {
"prefix": "fc",
"body": [
"interface $1Props {",
"\t$2",
"}",
" ",
"const $1: React.FC<$1Props> = (props) => {",
"\tconst {} = props;",
"\treturn ($0);",
"}",
" ",
"export default $1;"
],
"description": "Function Component"
},
"Function Syntax Component": {
"prefix": "ffc",
"body": [
"function $1($2) {",
"\treturn ($0);",
"}",
"",
"export default $1;"
],
"description": "Function Syntax Component"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment