From 557bc6ab9805bf6bb8ab3c0d588f2927c712d0b5 Mon Sep 17 00:00:00 2001 From: Niklas Date: Mon, 24 May 2021 15:27:08 +0200 Subject: [PATCH] added vscode React snippet --- .../User/snippets/typescriptreact.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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