Skip to content

Instantly share code, notes, and snippets.

@guillaumeduhan
Created December 7, 2023 13:27
Show Gist options
  • Save guillaumeduhan/a769f449d8e5b72796c91888de876192 to your computer and use it in GitHub Desktop.
Save guillaumeduhan/a769f449d8e5b72796c91888de876192 to your computer and use it in GitHub Desktop.
Generate a .TSX file [snippet vscode]
"ncomp": {
"scope": "javascriptreact,typescriptreact,tsx",
"prefix": "ncomp",
"body": [
"'use client';",
"export default function $TM_FILENAME_BASE() {",
"return <div>New component with filename</div>;",
"}"
]
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment