Skip to content

Commit ca54d4d

Browse files
authored
fix: log the result of createAction method
removed payload named parameter
1 parent 82fce09 commit ca54d4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/chapter-5.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class AppComponent implements OnInit {
5555
In the console, we will see the following:
5656

5757
```js
58-
{type: '[Category List] Add Category', payload: {name: 'Food'}}
58+
{name: 'Food', type: '[Category List] Add Category'}
5959
```
6060

6161
So essentially, `createAction` provided us with an easy way of creating actions of the same type. `addCategory` in our case is an `ActionCreator`, a function which produces an action object whenever called, and `props` explained what argument that `ActionCreator` function expects.

0 commit comments

Comments
 (0)