Skip to content

Commit ef53563

Browse files
committed
Update README.md
1 parent e2b2ebe commit ef53563

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ function mapStateToProps(state) {
307307
}
308308

309309
function mapDispatchToProps(dispatch) {
310-
return { addTodo: bindActionCreators(addTodo, dispatch) };
310+
return bindActionCreators({ addTodo }, dispatch);
311311
}
312312

313313
export default connect(mapStateToProps, mapDispatchToProps)(TodoApp);

0 commit comments

Comments
 (0)