From 7fd707b5588a148140e284bcd3da874225fdeeaf Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Sun, 21 Jan 2024 21:11:41 -0500 Subject: [PATCH] Add tiny JSX/TSX templates --- fake_home/.vim/templates/skeleton.jsx | 9 +++++++++ fake_home/.vim/templates/skeleton.tsx | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 fake_home/.vim/templates/skeleton.jsx create mode 100644 fake_home/.vim/templates/skeleton.tsx diff --git a/fake_home/.vim/templates/skeleton.jsx b/fake_home/.vim/templates/skeleton.jsx new file mode 100644 index 0000000..5608fd7 --- /dev/null +++ b/fake_home/.vim/templates/skeleton.jsx @@ -0,0 +1,9 @@ +const ComponentTodo = ({ text }) => { + return ( +
+ {text} +
+ ) +} + +export default ComponentTodo diff --git a/fake_home/.vim/templates/skeleton.tsx b/fake_home/.vim/templates/skeleton.tsx new file mode 100644 index 0000000..07a02fe --- /dev/null +++ b/fake_home/.vim/templates/skeleton.tsx @@ -0,0 +1,9 @@ +const ComponentTodo: FC<{ text: string }> = ({ text }) => { + return ( +
+ {text} +
+ ) +} + +export default ComponentTodo