Skip to content

Commit ee7ac84

Browse files
snehil002timdorr
andauthored
Update quick-start.md typos (#2021)
Co-authored-by: Tim Dorr <[email protected]>
1 parent 07e89ac commit ee7ac84

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/tutorials/quick-start.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ export const counterSlice = createSlice({
105105
// Redux Toolkit allows us to write "mutating" logic in reducers. It
106106
// doesn't actually mutate the state because it uses the Immer library,
107107
// which detects changes to a "draft state" and produces a brand new
108-
// immutable state based off those changes
108+
// immutable state based off those changes.
109+
// Also, no return statement is required from these functions.
109110
state.value += 1
110111
},
111112
decrement: (state) => {
@@ -125,7 +126,7 @@ export default counterSlice.reducer
125126

126127
### Add Slice Reducers to the Store
127128

128-
Next, we need to import the reducer function from the counter slice and add it to our store. By defining a field inside the `reducers` parameter, we tell the store to use this slice reducer function to handle all updates to that state.
129+
Next, we need to import the reducer function from the counter slice and add it to our store. By defining a field inside the `reducer` parameter, we tell the store to use this slice reducer function to handle all updates to that state.
129130

130131
```js title="app/store.js"
131132
import { configureStore } from '@reduxjs/toolkit'
@@ -206,9 +207,7 @@ That was a brief overview of how to set up and use Redux Toolkit with React. Rec
206207

207208
### Full Counter App Example
208209

209-
The counter example app shown here is also the
210-
211-
Here's the complete counter application as a running CodeSandbox:
210+
Here's the complete Counter application as a running CodeSandbox:
212211

213212
<iframe
214213
class="codesandbox"

0 commit comments

Comments
 (0)