File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ I.E. `tsrcc`
44
44
| ` cmmb→ ` | ` comment block ` |
45
45
| ` cp→ ` | ` const { } = this.props ` |
46
46
| ` cs→ ` | ` const { } = this.state ` |
47
+ | ` cln ` | ` className="" ` |
47
48
48
49
### React
49
50
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ type OthersMapping = {
41
41
setTimeOut : 'sto' ;
42
42
shouldComponentUpdate : 'scu' ;
43
43
typeofSnippet : 'tpf' ;
44
+ classNameSnippet : 'cln' ;
44
45
} ;
45
46
46
47
export type OthersSnippet = SnippetMapping < OthersMapping > ;
@@ -407,6 +408,13 @@ const typeofSnippet: OthersSnippet = {
407
408
body : [ `typeof ${ Placeholders . FirstTab } ` ] ,
408
409
} ;
409
410
411
+ const classNameSnippet : OthersSnippet = {
412
+ key : 'classNameSnippet' ,
413
+ prefix : 'cln' ,
414
+ body : [ "className=\"$0\"" ] ,
415
+ description : "Insert className attribute"
416
+ } ;
417
+
410
418
export default [
411
419
exportDefault ,
412
420
exportDestructing ,
@@ -448,4 +456,5 @@ export default [
448
456
hocComponentWithRedux ,
449
457
hocComponent ,
450
458
typeofSnippet ,
459
+ classNameSnippet
451
460
] ;
You can’t perform that action at this time.
0 commit comments