You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-25Lines changed: 28 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,15 +65,15 @@ When compared to _other_ ways of organizing your code,
65
65
+ Easier to _understand_ what is going on in more advanced apps because there is no complex logic,
66
66
only one basic principal
67
67
and the "_flow_" is _always_ the same.
68
-
+***Uni-directional data-flow*** means "state"
68
+
+***Uni-directional dataflow*** means the "state"
69
69
of the app is always _predictable_;
70
-
given a specific starting "state" and sequence of update actions
70
+
given a specific starting "state" and sequence of update actions,
71
71
the output/end state will _always_ be the same. This makes testing/testability
72
72
very easy!
73
73
+ There's **no** "***middle man***" to complicate things
74
74
(_the way there is in other application architectures
75
75
such as
76
-
[Model-view-Presenter](https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93presenter) or "Model-View-ViewModel" (MVVM) which is "overkill" for most apps_.)
76
+
[Model-view-Presenter](https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93presenter) or "Model-View-ViewModel" (MVVM) which is "overkill" for most apps_).
77
77
78
78
> _**Note**: **don't panic** if any of the terms above are strange
79
79
or even confusing to you right now.
@@ -118,12 +118,12 @@ Start with a few definitions:
118
118
+**Model** - or "data model" is the place where all data is stored;
119
119
often referred to as the application's `state`.
120
120
+**Update** - how the app handles `actions` performed
121
-
by people and `update` the `state`,
121
+
by people and `update`s the `state`,
122
122
usually organised as a `switch` with various `case` statements corresponding
123
123
to the different "_actions_" the user can take in your App.
124
124
+**View** - what people using the app can _see_;
125
-
a way to `view` the Model (counter) as `HTML`
126
-
rendered in a web browser.
125
+
a way to `view` the Model (in the case of the first tutorial below,
0 commit comments