We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9328ca0 commit eb8975aCopy full SHA for eb8975a
snippets/snippets.cson
@@ -76,9 +76,9 @@ export default class ${1:componentName} extends Component {
76
"""
77
'mapDispatchToProps funtion':
78
'prefix': 'mapDisp'
79
- 'body': """const mapDispatchToProps= {
+ 'body': """const mapDispatchToProps = (dispatch) => ({
80
$1
81
- };
+ });
82
83
84
'Component with redux':
@@ -102,9 +102,9 @@ const mapStateToProps = (state) => ({
102
103
});
104
105
-const mapDispatchToProps = {
+const mapDispatchToProps = (dispatch) => ({
106
107
-}
+})
108
109
export default connect(mapStateToProps, mapDispatchToProps)(${1:componentName});
110
0 commit comments