Created
March 18, 2024 07:32
-
-
Save say8425/39920ad415bff38b8113862e1d6ae28f to your computer and use it in GitHub Desktop.
New file template with VTL for index.tsx in WebStorm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if ($Component_Name) | |
#set($CapitalizedComponentName = $Component_Name.substring(0,1).toUpperCase() + $Component_Name.substring(1)) | |
#else | |
#set($CapitalizedComponentName = $DIR_PATH.split("\/").get($DIR_PATH.split("\/").size() - 1)) | |
#end | |
import type { FC } from 'react'; | |
import styled from 'styled-components'; | |
type Props = { | |
// Put your props here | |
}; | |
export const $CapitalizedComponentName: FC<Props> = (props) => { | |
return ( | |
<StyledComponent> | |
{/* Have a Happy Codding */} | |
</StyledComponent> | |
); | |
}; | |
const StyledComponent = styled.div``; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment