|
4 | 4 | "body": [
|
5 | 5 | "import * as React from 'react';",
|
6 | 6 | "",
|
7 |
| - "export interface ${1:App}Props {", |
| 7 | + "export interface ${1:IApp}Props {", |
8 | 8 | "}",
|
9 | 9 | "",
|
10 | 10 | "export default class ${1:} extends React.Component<${1:}Props, any> {",
|
11 |
| - " render() {", |
| 11 | + " public render() {", |
12 | 12 | " return (",
|
13 | 13 | " <div>",
|
14 | 14 | " ${2:}",
|
|
25 | 25 | "body": [
|
26 | 26 | "import * as React from 'react';",
|
27 | 27 | "",
|
28 |
| - "export interface ${1:App}Props {", |
| 28 | + "export interface ${1:IApp}Props {", |
29 | 29 | "}",
|
30 | 30 | "",
|
31 |
| - "export interface ${1:App}State {", |
| 31 | + "export interface ${1:IApp}State {", |
32 | 32 | "}",
|
33 | 33 | "",
|
34 | 34 | "export default class ${1:} extends React.Component<${1:}Props, ${1:}State> {",
|
|
39 | 39 | " }",
|
40 | 40 | " }",
|
41 | 41 | "",
|
42 |
| - " render() {", |
| 42 | + " public render() {", |
43 | 43 | " return (",
|
44 | 44 | " <div>",
|
45 | 45 | " ${2:}",
|
|
54 | 54 | "React Component without import and export": {
|
55 | 55 | "prefix": "tsrcjc",
|
56 | 56 | "body": [
|
57 |
| - "export interface ${1:App}Props {", |
| 57 | + "export interface ${1:IApp}Props {", |
58 | 58 | "}",
|
59 | 59 | "",
|
60 | 60 | "class ${1:} extends React.Component<${1:}Props, any> {",
|
61 |
| - " render() {", |
| 61 | + " public render() {", |
62 | 62 | " return (",
|
63 | 63 | " <div>",
|
64 | 64 | " ${2:}",
|
|
75 | 75 | "body": [
|
76 | 76 | "import * as React from 'react';",
|
77 | 77 | "",
|
78 |
| - "export interface ${1:App}Props {", |
| 78 | + "export interface ${1:IApp}Props {", |
79 | 79 | "}",
|
80 | 80 | "",
|
81 | 81 | "export default class ${1:} extends React.PureComponent<${1:}Props, any> {",
|
82 |
| - " render() {", |
| 82 | + " public render() {", |
83 | 83 | " return (",
|
84 | 84 | " <div>",
|
85 | 85 | " ${2:}",
|
|
94 | 94 | "React PureComponent without import and export": {
|
95 | 95 | "prefix": "tsrpcjc",
|
96 | 96 | "body": [
|
97 |
| - "export interface ${1:App}Props {", |
| 97 | + "export interface ${1:IApp}Props {", |
98 | 98 | "}",
|
99 | 99 | "",
|
100 | 100 | "class ${1:} extends React.PureComponent<${1:}Props, any> {",
|
101 |
| - " render() {", |
| 101 | + " public render() {", |
102 | 102 | " return (",
|
103 | 103 | " <div>",
|
104 | 104 | " ${2:}",
|
|
115 | 115 | "body": [
|
116 | 116 | "import * as React from 'react';",
|
117 | 117 | "",
|
118 |
| - "export interface ${1:App}Props {", |
| 118 | + "export interface ${1:IApp}Props {", |
119 | 119 | "}",
|
120 | 120 | "",
|
121 | 121 | "export function ${1:} (props: ${1:}Props) {",
|
|
134 | 134 | "body": [
|
135 | 135 | "import * as React from 'react';",
|
136 | 136 | "",
|
137 |
| - "interface ${1:App}Props {$2", |
| 137 | + "interface ${1:IApp}Props {$2", |
138 | 138 | "}",
|
139 | 139 | "",
|
140 | 140 | "const $1: React.SFC<$1Props> = (props) => {",
|
|
167 | 167 | "render": {
|
168 | 168 | "prefix": "ren",
|
169 | 169 | "body": [
|
170 |
| - "render() {", |
| 170 | + "public render() {", |
171 | 171 | " return (",
|
172 | 172 | " ${1:}",
|
173 | 173 | " );",
|
|
258 | 258 | "import * as React from 'react';",
|
259 | 259 | "import { connect } from 'react-redux'",
|
260 | 260 | "",
|
261 |
| - "export interface ${1:App}Props {", |
| 261 | + "export interface ${1:IApp}Props {", |
262 | 262 | "}",
|
263 | 263 | "",
|
264 | 264 | "class ${1:} extends React.Component<${1:}Props, any> {",
|
265 |
| - " render() {", |
| 265 | + " pubic render() {", |
266 | 266 | " return (",
|
267 | 267 | " <div>",
|
268 | 268 | " ${2:}",
|
|
0 commit comments