We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a143d51 commit 4fde124Copy full SHA for 4fde124
packages/vscode/snippets/react-typescript.json
@@ -24,9 +24,9 @@
24
"body": [
25
"import React from \"react\";",
26
"",
27
- "interface Props {}",
+ "interface I${1:${TM_FILENAME_BASE}}Props {}",
28
29
- "function ${1:${TM_FILENAME_BASE}}({}: Props) {",
+ "function ${1:${TM_FILENAME_BASE}}({}: I${1:${TM_FILENAME_BASE}}Props): JSX.Element {",
30
" return <div></div>;",
31
"}",
32
0 commit comments