Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 33ef145

Browse files
drakang4Damian Sznajder
authored and
Damian Sznajder
committed
Add tsrafc
1 parent 9ee6348 commit 33ef145

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

‎snippets/ts-snippets.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,26 @@
119119
],
120120
"description": "Creates a React Arrow Function Component with ES7 module system and TypeScript interface"
121121
},
122+
"typeScriptReactArrowFunctionComponent": {
123+
"prefix": "tsrafc",
124+
"body": [
125+
"import React from 'react'",
126+
"",
127+
"interface Props {",
128+
"\t",
129+
"}",
130+
"",
131+
"export const ${1:${TM_FILENAME_BASE}} = (props: Props) => {",
132+
"\treturn (",
133+
"\t\t<div>",
134+
"\t\t\t0ドル",
135+
"\t\t</div>",
136+
"\t)",
137+
"}",
138+
""
139+
],
140+
"description": "Creates a React Arrow Function Component with ES7 module system and TypeScript interface"
141+
},
122142
"typeScriptReactClassPureComponent": {
123143
"prefix": "tsrpc",
124144
"body": [

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /