From 97207ad6895f23e4c920f7ab0b62e9d7b7694137 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20A=2E=20Mendoza=20Infanz=C3=B3n?= Date: Mon, 12 Feb 2024 05:06:46 +0100 Subject: [PATCH] Add rfv for React, compatible with Vite (#384) --- snippets/javascript/react-es7.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/snippets/javascript/react-es7.json b/snippets/javascript/react-es7.json index 968ea281..ee54f252 100644 --- a/snippets/javascript/react-es7.json +++ b/snippets/javascript/react-es7.json @@ -488,6 +488,18 @@ ], "description": "Creates a React Functional Component with ES7 module system" }, + "reactFunctionalViteComponent": { + "prefix": "rfcv", + "body": [ + "export default function ${1:${TM_FILENAME_BASE}}() {", + " return (", + "
${1:first}
", + " )", + "}", + "" + ], + "description": "Creates a React Functional Component with ES7 module system, compatible with Vite" + }, "reactFunctionalComponentRedux": { "prefix": "rfcredux", "body": [