Last active
August 26, 2022 07:54
-
-
Save Ray-56/ddac8ad6ef0e525ff1d1a7940bcc02b9 to your computer and use it in GitHub Desktop.
Some snippets of Vscode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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