From ac24424a27a4fec421a2bc08493c826bdad21283 Mon Sep 17 00:00:00 2001 From: Halit Aksoy Date: Fri, 15 Jul 2022 17:18:58 +0300 Subject: [PATCH] add React Functional Component snippet --- .vscode/.snippet.code-snippets | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.vscode/.snippet.code-snippets b/.vscode/.snippet.code-snippets index f4961fc..a072b93 100644 --- a/.vscode/.snippet.code-snippets +++ b/.vscode/.snippet.code-snippets @@ -15,5 +15,27 @@ "`}" ], "description": "Log output to console" + }, + "React Functional Component": { + "scope": "typescriptreact", + "prefix": "rfc", + "body": [ + "import * as React from 'react';", + "import { FunctionComponent } from 'react';", + "", + "const $TM_FILENAME_BASE: FunctionComponent = () => {", + "\treturn (", + "\t\t
", + "\t\t\t$0", + "\t\t\t", + "\t\t
", + "\t);", + "}", + "", + "export default $TM_FILENAME_BASE;" + ], + "description": "Log output to console" } } \ No newline at end of file