Skip to content

Commit 9ab0e39

Browse files
authored
Update part6b.md - grammar
Updated/improved grammar
1 parent dbc1cfb commit 9ab0e39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/6/en/part6b.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ const noteSlice = createSlice({
516516
// highlight-end
517517
```
518518
519-
The <em>createSlice</em> function's <em>name</em> parameter defines the prefix which is used in the action's type values. For example, the <em>createNote</em> action defined later will have the type value of <em>notes/createNote</em>. It is a good practice to give the parameter a value, which is unique among the reducers. This way there won't be unexpected collisions between the application's action type values. The <em>initialState</em> parameter defines the reducer's initial state. The <em>reducers</em> parameter takes the reducer itself as an object, of which functions handle state changes caused by certain actions. Note that the <em>action.payload</em> in the function contains the argument provided by calling the action creator:
519+
The <em>createSlice</em> function's <em>name</em> parameter defines the prefix which is used in the action's type values. For example, the <em>createNote</em> action defined later will have the type value of <em>notes/createNote</em>. It is a good practice to give the parameter a value which is unique among the reducers. This way there won't be unexpected collisions between the application's action type values. The <em>initialState</em> parameter defines the reducer's initial state. The <em>reducers</em> parameter takes the reducer itself as an object, of which functions handle state changes caused by certain actions. Note that the <em>action.payload</em> in the function contains the argument provided by calling the action creator:
520520
521521
```js
522522
dispatch(createNote('Redux Toolkit is awesome!'))
@@ -621,7 +621,7 @@ describe('noteReducer', () => {
621621
622622
### Redux Toolkit and console.log
623623
624-
As we have learned, console.log is an extremely powerful tool, it usually always saves us from trouble.
624+
As we have learned, console.log is an extremely powerful tool; it often saves us from trouble.
625625
626626
Let's try to print the state of the Redux Store to the console in the middle of the reducer created with the function createSlice:
627627

0 commit comments

Comments
 (0)