Skip to content

Commit f6fe1bf

Browse files
committed
Update snippets.json
1 parent 19c9272 commit f6fe1bf

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

snippets/snippets.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"body": [
55
"import * as React from 'react';",
66
"",
7-
"export interface ${1:IApp}Props {",
7+
"export interface I${1:App}Props {",
88
"}",
99
"",
10-
"export default class ${1:} extends React.Component<${1:}Props, any> {",
10+
"export default class ${1:} extends React.Component<I${1:}Props, any> {",
1111
" public render() {",
1212
" return (",
1313
" <div>",
@@ -25,14 +25,14 @@
2525
"body": [
2626
"import * as React from 'react';",
2727
"",
28-
"export interface ${1:IApp}Props {",
28+
"export interface I${1:App}Props {",
2929
"}",
3030
"",
31-
"export interface ${1:IApp}State {",
31+
"export interface I${1:App}State {",
3232
"}",
3333
"",
34-
"export default class ${1:} extends React.Component<${1:}Props, ${1:}State> {",
35-
" constructor(props: ${1:}Props) {",
34+
"export default class ${1:} extends React.Component<I${1:}Props, ${1:}State> {",
35+
" constructor(props: I${1:}Props) {",
3636
" super(props);",
3737
"",
3838
" this.state = {",
@@ -54,10 +54,10 @@
5454
"React Component without import and export": {
5555
"prefix": "tsrcjc",
5656
"body": [
57-
"export interface ${1:IApp}Props {",
57+
"export interface I${1:App}Props {",
5858
"}",
5959
"",
60-
"class ${1:} extends React.Component<${1:}Props, any> {",
60+
"class ${1:} extends React.Component<I${1:}Props, any> {",
6161
" public render() {",
6262
" return (",
6363
" <div>",
@@ -75,10 +75,10 @@
7575
"body": [
7676
"import * as React from 'react';",
7777
"",
78-
"export interface ${1:IApp}Props {",
78+
"export interface I${1:App}Props {",
7979
"}",
8080
"",
81-
"export default class ${1:} extends React.PureComponent<${1:}Props, any> {",
81+
"export default class ${1:} extends React.PureComponent<I${1:}Props, any> {",
8282
" public render() {",
8383
" return (",
8484
" <div>",
@@ -94,10 +94,10 @@
9494
"React PureComponent without import and export": {
9595
"prefix": "tsrpcjc",
9696
"body": [
97-
"export interface ${1:IApp}Props {",
97+
"export interface I${1:App}Props {",
9898
"}",
9999
"",
100-
"class ${1:} extends React.PureComponent<${1:}Props, any> {",
100+
"class ${1:} extends React.PureComponent<I${1:}Props, any> {",
101101
" public render() {",
102102
" return (",
103103
" <div>",
@@ -115,10 +115,10 @@
115115
"body": [
116116
"import * as React from 'react';",
117117
"",
118-
"export interface ${1:IApp}Props {",
118+
"export interface I${1:App}Props {",
119119
"}",
120120
"",
121-
"export function ${1:} (props: ${1:}Props) {",
121+
"export function ${1:} (props: I${1:}Props) {",
122122
" return (",
123123
" <div>",
124124
" ${0}",
@@ -134,14 +134,14 @@
134134
"body": [
135135
"import * as React from 'react';",
136136
"",
137-
"interface ${1:IApp}Props {$2",
137+
"interface I${1:App}Props {$2",
138138
"}",
139139
"",
140-
"const $1: React.FunctionComponent<$1Props> = (props) => {",
140+
"const ${1:}: React.FunctionComponent<I${1:}Props> = (props) => {",
141141
" return $0;",
142142
"};",
143143
"",
144-
"export default $1;"
144+
"export default ${1:};"
145145
],
146146
"description": "Create a React Stateless Functional Component."
147147
},
@@ -258,10 +258,10 @@
258258
"import * as React from 'react';",
259259
"import { connect } from 'react-redux'",
260260
"",
261-
"export interface ${1:IApp}Props {",
261+
"export interface I${1:App}Props {",
262262
"}",
263263
"",
264-
"class ${1:} extends React.Component<${1:}Props, any> {",
264+
"class ${1:} extends React.Component<I${1:}Props, any> {",
265265
" public render() {",
266266
" return (",
267267
" <div>",

0 commit comments

Comments
 (0)