Skip to content

Commit 52dabe6

Browse files
committed
Merge branch 'patch-1' of https://github.com/coryhouse/redux-tutorial into coryhouse-patch-1
2 parents 55cc1ad + fa06fed commit 52dabe6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

00_introduction.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
// but I just didn't grasp concepts correctly. In the end, I was just applying documentation of different
77
// flux frameworks (Reflux, Flummox, FB Flux) and trying to make them match with the theoretical concept I read
88
// about (actions / actions creators, store, dispatcher, etc).
9-
// Only when I started using Redux did I realized that flux is more simple than I thought. This is all
9+
// Only when I started using Redux did I realize that flux is more simple than I thought. This is all
1010
// thanks to Redux being very well designed and having removed a lot of "anti-boilerplate features" introduced
1111
// by other framework I tried before. I feel today that Redux is a much better way to learn about flux
12-
// than many other framework. That's why I want now to share with everyone, and using my own words,
12+
// than many other framework. That's why I want now to share with everyone, using my own words,
1313
// flux concepts that I am starting to grasp, focusing on the use of Redux.
1414

1515
// You may have seen this diagram representing the famous unidirectional data flow of a flux application:
@@ -62,13 +62,13 @@
6262
// actions directly modify Models or Views, flux ensures all actions go first through something called
6363
// a dispatcher, then through our stores, and finally all watchers of stores are notified.
6464

65-
// To get more clearly how MVC and flux differs, we'll
65+
// To get more clarity how MVC and flux differs, we'll
6666
// take a classic use-case in an MVC application:
6767
// In a classic MVC application you could easily end up with:
6868
// 1) User clicks on button "A"
6969
// 2) A click handler on button "A" triggers a change on Model "A"
7070
// 3) A change handler on Model "A" triggers a change on Model "B"
71-
// 4) A change handler on Model "B" triggers a change on View "B" that re-renders itself
71+
// 4) A change handler on Model "B" triggers a change on View "B" that re-renders itself
7272

7373
// Finding the source of a bug in such an environment when something goes wrong can become quite challenging
7474
// very quickly. This is because every View can watch every Model, and every Model can watch other Models, so
@@ -80,9 +80,9 @@
8080
// 3) since all other stores are also notified about the action, Store B can react to the same action too
8181
// 4) View "B" gets notified by the change in Stores A and B, and re-renders
8282

83-
// See how we avoid to have Store A being directly linked to Store B? Each store can only be
83+
// See how we avoid directly linking Store A to Store B? Each store can only be
8484
// modified by an action and nothing else. And once all stores have replied to an action,
85-
// views can finally update. So in the end, data always flow in one way:
85+
// views can finally update. So in the end, data always flows in one way:
8686
// action -> store -> view -> action -> store -> view -> action -> ...
8787

8888
// Just as we started our use case above from an action, let's start our tutorial with

0 commit comments

Comments
 (0)