diff --git a/.config/Code - OSS/User/snippets/typescriptreact.json b/.config/Code - OSS/User/snippets/typescriptreact.json index 3957733..804be5d 100644 --- a/.config/Code - OSS/User/snippets/typescriptreact.json +++ b/.config/Code - OSS/User/snippets/typescriptreact.json @@ -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
", + "\t\t\t$1", + "\t\t
", + "\t)", + "}", + "", + "export default $1", + ] } } \ No newline at end of file