@@ -106,78 +106,54 @@ constructor(props, context, ...rest) {
106
106
```
107
107
### componentWillMount (` cwm ` )
108
108
``` javascript
109
- componentWillMount () {
110
- $0
111
- }
109
+ componentWillMount () {$1}$0
112
110
```
113
111
### componentDidMount (` cdm ` )
114
112
``` javascript
115
- componentDidMount () {
116
- $0
117
- }
113
+ componentDidMount () {$1}$0
118
114
```
119
115
### componentWillReceiveProps (` cwr ` )
120
116
``` javascript
121
- componentWillReceiveProps (nextProps ) {
122
- $0
123
- }
117
+ componentWillReceiveProps (nextProps ) {$1}$0
124
118
```
125
119
### shouldComponentUpdate (` scu ` )
126
120
``` javascript
127
- shouldComponentUpdate (nextProps , nextState ) {
128
- $0
129
- }
121
+ shouldComponentUpdate (nextProps , nextState ) {$1}$0
130
122
```
131
123
### componentWillUpdate (` cwup ` )
132
124
``` javascript
133
- componentWillUpdate (nextProps , nextState ) {
134
- $0
135
- }
125
+ componentWillUpdate (nextProps , nextState ) {$1}$0
136
126
```
137
127
### componentDidUpdate (` cdup ` )
138
128
``` javascript
139
- componentDidUpdate (prevProps , prevState ) {
140
- $0
141
- }
129
+ componentDidUpdate (prevProps , prevState ) {$1}$0
142
130
```
143
131
### componentWillUnmount (` cwum ` )
144
132
``` javascript
145
- componentWillUnmount () {
146
- $0
147
- }
133
+ componentWillUnmount () {$1}$0
148
134
```
149
135
### bound component class method (` ccm ` )
150
136
``` javascript
151
- ${1 : methodName} = () => {
152
- $0
153
- };
137
+ ${1 : methodName} = () => ${1 : {}};$0
154
138
```
155
139
### set state (` sst ` )
156
140
``` javascript
157
- this .setState ({
158
- $1
159
- });
141
+ this .setState ({$1});
160
142
$0
161
143
```
162
144
### set state w/ function (` ssf ` )
163
145
``` javascript
164
- this .setState ((state , props ) => ({
165
- $1
166
- }));
146
+ this .setState ((state , props ) => ({$1}));
167
147
$0
168
148
```
169
149
### destructure class props (` cdp ` )
170
150
``` javascript
171
- const {
172
- $1
173
- } = this .props ;
151
+ const {$1 } = this .props ;
174
152
$0
175
153
```
176
154
### destructure class state (` cds ` )
177
155
``` javascript
178
- const {
179
- $1
180
- } = this .state ;
156
+ const {$1 } = this .state ;
181
157
$0
182
158
```
183
159
### bind method to class (` cbnd ` )
@@ -187,130 +163,120 @@ $0
187
163
```
188
164
### default props (` rdp ` )
189
165
``` javascript
190
- $1 .defaultProps = {
191
- $2
192
- };
166
+ $1 .defaultProps = {$2};
193
167
$0
194
168
```
195
169
### propType array (` pta ` )
196
170
``` javascript
197
- PropTypes .array ,
171
+ PropTypes .array ,$0
198
172
```
199
173
### propType array required (` ptar ` )
200
174
``` javascript
201
- PropTypes .array .isRequired ,
175
+ PropTypes .array .isRequired ,$0
202
176
```
203
177
### propType bool (` ptb ` )
204
178
``` javascript
205
- PropTypes .bool ,
179
+ PropTypes .bool ,$0
206
180
```
207
181
### propType bool required (` ptbr ` )
208
182
``` javascript
209
- PropTypes .bool .isRequired ,
183
+ PropTypes .bool .isRequired ,$0
210
184
```
211
185
### propType func (` ptf ` )
212
186
``` javascript
213
- PropTypes .func ,
187
+ PropTypes .func ,$0
214
188
```
215
189
### propType func required (` ptfr ` )
216
190
``` javascript
217
- PropTypes .func .isRequired ,
191
+ PropTypes .func .isRequired ,$0
218
192
```
219
193
### propType number (` ptn ` )
220
194
``` javascript
221
- PropTypes .number ,
195
+ PropTypes .number ,$0
222
196
```
223
197
### propType number required (` ptnr ` )
224
198
``` javascript
225
- PropTypes .number .isRequired ,
199
+ PropTypes .number .isRequired ,$0
226
200
```
227
201
### propType object (` pto ` )
228
202
``` javascript
229
- PropTypes .object ,
203
+ PropTypes .object ,$0
230
204
```
231
205
### propType object required (` ptor ` )
232
206
``` javascript
233
- PropTypes .object .isRequired ,
207
+ PropTypes .object .isRequired ,$0
234
208
```
235
209
### propType string (` pts ` )
236
210
``` javascript
237
- PropTypes .string ,
211
+ PropTypes .string ,$0
238
212
```
239
213
### propTypes string required (` ptsr ` )
240
214
``` javascript
241
- PropTypes .string .isRequired ,
215
+ PropTypes .string .isRequired ,$0
242
216
```
243
217
### propType node (` ptnd ` )
244
218
``` javascript
245
- PropTypes .node ,
219
+ PropTypes .node ,$0
246
220
```
247
221
### propType node required (` ptndr ` )
248
222
``` javascript
249
- PropTypes .node .isRequired ,
223
+ PropTypes .node .isRequired ,$0
250
224
```
251
225
### propType element (` ptel ` )
252
226
``` javascript
253
- PropTypes .element ,
227
+ PropTypes .element ,$0
254
228
```
255
229
### propType element required (` ptelr ` )
256
230
``` javascript
257
- PropTypes .element .isRequired ,
231
+ PropTypes .element .isRequired ,$0
258
232
```
259
233
### propType instanceOf (` pti ` )
260
234
``` javascript
261
- PropTypes .instanceOf ($0),
235
+ PropTypes .instanceOf ($1),$0
262
236
```
263
237
### propType instanceOf required (` ptir ` )
264
238
``` javascript
265
- PropTypes .instanceOf ($0 ).isRequired ,
239
+ PropTypes .instanceOf ($1 ).isRequired ,$0
266
240
```
267
241
### propType enum (` pte ` )
268
242
``` javascript
269
- PropTypes .oneOf ([' $0 ' ]),
243
+ PropTypes .oneOf ([$1 ]),$0
270
244
```
271
245
### propType enum required (` pter ` )
272
246
``` javascript
273
- PropTypes .oneOf ([' $0 ' ]).isRequired ,
247
+ PropTypes .oneOf ([$1 ]).isRequired ,$0
274
248
```
275
249
### propType one of type (` ptot ` )
276
250
``` javascript
277
- PropTypes .oneOfType ([
278
- $0
279
- ]),
251
+ PropTypes .oneOfType ([$1]),$0
280
252
```
281
253
### propType one of type required (` ptotr ` )
282
254
``` javascript
283
- PropTypes .oneOfType ([
284
- $0
285
- ]).isRequired ,
255
+ PropTypes .oneOfType ([$1]).isRequired ,$0
286
256
```
287
257
### propType array of (` ptao ` )
288
258
``` javascript
289
- PropTypes .arrayOf ($0),
259
+ PropTypes .arrayOf ($1),$0
290
260
```
291
261
### propType array of required (` ptaor ` )
292
262
``` javascript
293
- PropTypes .arrayOf ($0 ).isRequired ,
263
+ PropTypes .arrayOf ($1 ).isRequired ,$0
294
264
```
295
265
### propType object of (` ptoo ` )
296
266
``` javascript
297
- PropTypes .objectOf ($0),
267
+ PropTypes .objectOf ($1),$0
298
268
```
299
269
### propType object of required (` ptoor ` )
300
270
``` javascript
301
- PropTypes .objectOf ($0 ).isRequired ,
271
+ PropTypes .objectOf ($1 ).isRequired ,$0
302
272
```
303
273
### propType shape (` ptsh ` )
304
274
``` javascript
305
- PropTypes .shape ({
306
- $0
307
- }),
275
+ PropTypes .shape ({$0}),
308
276
```
309
277
### propType shape required (` ptshr ` )
310
278
``` javascript
311
- PropTypes .shape ({
312
- $0
313
- }).isRequired ,
279
+ PropTypes .shape ({$1}).isRequired ,$0
314
280
```
315
281
### higher order component (` hoc ` )
316
282
``` javascript
@@ -336,5 +302,5 @@ C => {
336
302
ref= {(el ) => {
337
303
this .$1 = el;
338
304
}}
339
-
305
+ $0
340
306
```
0 commit comments