Skip to content

Commit d072724

Browse files
authored
Update edits1
Readded flow.png and veux.png
1 parent d1b2cb7 commit d072724

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ It is a self-contained app with the following parts:
3737

3838
This is an simple representation of the concept of "one-way data flow":
3939

40+
<p style="text-align: center; margin: 2em">
41+
<img style="width:100%;max-width:450px;" src="/flow.png">
42+
</p>
43+
4044
However, the simplicity quickly breaks down when we have **multiple components that share a common state**:
4145

4246
- Multiple views may depend on the same piece of state.
@@ -48,6 +52,8 @@ So why don't we extract the shared state out of the components, and manage it in
4852

4953
By defining and separating the concepts involved in state management and enforcing rules that maintain independece between views and states, we give our code more structure and maintainability.
5054

55+
![vuex](/vuex.png)
56+
5157
This is the basic idea behind Vuex, inspired by [Flux](https://facebook.github.io/flux/docs/overview.html), [Redux](http://redux.js.org/) and [The Elm Architecture](https://guide.elm-lang.org/architecture/). Unlike the other patterns, Vuex is also a library implementation tailored specifically for Vue.js to take advantage of its granular reactivity system for efficient updates.
5258

5359
If you want to learn Vuex in an interactive way you can check out this [Vuex course on Scrimba](https://scrimba.com/g/gvuex), which gives you a mix of screencast and code playground that you can pause and play around with anytime.

0 commit comments

Comments
 (0)