File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -303,10 +303,10 @@ store.
303
303
304
304
` ` ` js
305
305
// actionCreators.js
306
- function addTodo (text ) {
306
+ export function addTodo (text ) {
307
307
// ...
308
308
}
309
- function removeTodo (id ) {
309
+ export function removeTodo (id ) {
310
310
// ...
311
311
}
312
312
@@ -320,7 +320,7 @@ console.log(actionCreators);
320
320
store .dispatch (actionCreators .addTodo (' Use Redux' ));
321
321
322
322
// But it can be handy to bind action creators to a store instance:
323
- let boundActionCreators = bindActionCreators (action , store .dispatch );
323
+ let boundActionCreators = bindActionCreators (actionCreators , store .dispatch );
324
324
boundActionCreators .addTodo (' Use Redux' );
325
325
// You can pass them down and decouple components below from the Redux store.
326
326
` ` `
You can’t perform that action at this time.
0 commit comments