Skip to content

Instantly share code, notes, and snippets.

@hk-skit
Last active May 12, 2023 08:07
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 hk-skit/0eb83dd50424fcfbe548e4e89dce9b2c to your computer and use it in GitHub Desktop.
Save hk-skit/0eb83dd50424fcfbe548e4e89dce9b2c to your computer and use it in GitHub Desktop.
VS Code Snnipets
{
"React Function Component Typescript": {
"prefix": "rfct",
"body": [
"import type { FC } from \"react\"",
"import type { ${TM_FILENAME_BASE}Props } from \"./${TM_FILENAME_BASE}.types\"",
"",
"const ${TM_FILENAME_BASE}: FC<${TM_FILENAME_BASE}Props> = () => <div />;",
"",
"export default $TM_FILENAME_BASE;",
""
],
"description": "React Function Component Typescript"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment