Skip to content

Commit 700a350

Browse files
committed
Remove brackets
1 parent 60d17b0 commit 700a350

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

article/react-redux-concept-workflow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ I'd like to start with a graphical cheat sheet explaining the workflow in a Reac
9494
}
9595
```
9696

97-
1. There are some pros and cons using [*immutable.js*] which you can find in the [Redux recipes for immutable.js](http://redux.js.org/docs/recipes/UsingImmutableJS.html). I agree with all of them but I differ with respect to putting the whole state into immutable.js. Instead, I recommend to use immutable.js only within a slice which gives you much more flexibility and preserves the logic of the state being split in slices, where each slice can be accessed and managed separately.
97+
1. There are some pros and cons using *immutable.js* which you can find in the [Redux recipes for *immutable.js*](http://redux.js.org/docs/recipes/UsingImmutableJS.html). I agree with all of them but I differ with respect to putting the whole state into immutable.js. Instead, I recommend to use immutable.js only within a slice which gives you much more flexibility and preserves the logic of the state being split in slices, where each slice can be accessed and managed separately.
9898

9999
1. Every slice of the state is managed by its own function, that is responsible for updating exactly this slice and copying all other slices into the new state object. This function is called a [*reducer()*](http://redux.js.org/docs/basics/Reducers.html). The name *reducer* is semantically not very meaningful and has a purely technical origin.^[Quoting from the official documentation: "It's called a reducer because it's the type of function you would pass to Array.prototype.reduce(reducer, ?initialValue)."] If you struggle with the name translate it into *producer*, because its only purpose is to just produce a new state that is put in the store.
100100

0 commit comments

Comments
 (0)