Skip to content

Instantly share code, notes, and snippets.

@say8425
Created March 18, 2024 07:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save say8425/39920ad415bff38b8113862e1d6ae28f to your computer and use it in GitHub Desktop.
Save say8425/39920ad415bff38b8113862e1d6ae28f to your computer and use it in GitHub Desktop.
New file template with VTL for index.tsx in WebStorm
#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