From fd4a9765f532102e072cc4fdad2a79d76f767c06 Mon Sep 17 00:00:00 2001 From: Frank Lyder Bredland Date: Sat, 2 Nov 2024 15:28:51 +0100 Subject: [PATCH] Update template for new React component files --- vim/templates/skel.tsx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/vim/templates/skel.tsx b/vim/templates/skel.tsx index 7c779e6..e8b69e9 100644 --- a/vim/templates/skel.tsx +++ b/vim/templates/skel.tsx @@ -1,8 +1,13 @@ import React from 'react'; -const @BASENAME@ : React.FC = () => - <> - @CURSOR@ - ; +type @BASENAME@Props = { -export default @BASENAME@; +}; + +export const @BASENAME@ = ({ + +} : @BASENAME@Props ) => { + return ( +
@CURSOR@
+ ); +};