Skip to content

Commit

Permalink
Use component file name as name of component
Browse files Browse the repository at this point in the history
Makes it easier to get up running fast
  • Loading branch information
spaceo committed Oct 4, 2023
1 parent b3d71be commit b5f13c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .vscode.example/dpl-react.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@
"import * as React from \"react\";",
"import { FC } from \"react\";",
"",
"export interface ${1:component}Props {}",
"export interface ${TM_FILENAME_BASE}Props {}",
"",
"const ${1:component}: FC<${1:component}Props> = ({}) => {",
"const ${TM_FILENAME_BASE}: FC<${TM_FILENAME_BASE}Props> = ({}) => {",
"return (",
"<>",
"Hello",
"</>",
");",
"};",
"",
"export default ${1:component};"
"export default ${TM_FILENAME_BASE};"
],
"description": "Creates a skeleton for a new functional component in dpl-react style"
},
Expand Down

0 comments on commit b5f13c6

Please sign in to comment.