File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,8 @@ Enjoy :D
40
40
| Prefix| Method|
41
41
| -------:| -------|
42
42
| ` rcredux→ ` | ` React component with Redux ` |
43
- | ` mapS→ ` | ` mapStateToProps function ` |
43
+ | ` mapSta→ ` | ` mapStateToProps function ` |
44
+ | ` mapDis→ ` | ` mapDispatchToProps constant ` |
44
45
45
46
46
47
#Redux
Original file line number Diff line number Diff line change @@ -69,11 +69,16 @@ export default class ${1:componentName} extends Component {
69
69
"""
70
70
# React Redux
71
71
' mapStateToProps funtion' :
72
- ' prefix' : ' mapS '
72
+ ' prefix' : ' mapSta '
73
73
' body' : """ const mapStateToProps= state => ({
74
74
$1
75
75
});
76
-
76
+ """
77
+ ' mapDispatchToProps funtion' :
78
+ ' prefix' : ' mapDisp'
79
+ ' body' : """ const mapDispatchToProps= {
80
+ $1
81
+ };
77
82
"""
78
83
79
84
' Component with redux' :
You can’t perform that action at this time.
0 commit comments