Skip to content

Commit 499895b

Browse files
danieldiekmeierktsn
authored andcommitted
Fix typo (#434)
1 parent 6636e8a commit 499895b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/en/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ However, the simplicity quickly breaks down when we have **multiple components t
4444
- Multiple views may depend on the same piece of state.
4545
- Actions from different views may need to mutate the same piece of state.
4646

47-
For problem one, passing props can be tedious for deeply nested components, and simply doesn't work for sibling components. For problem two, we often find ourselves resorting to solutions such as reaching for direct parent/child instance references or trying to mutate and synchronize multiple copies of the state via events. Both of these patterns are brittle and quickly leads to unmaintainable code.
47+
For problem one, passing props can be tedious for deeply nested components, and simply doesn't work for sibling components. For problem two, we often find ourselves resorting to solutions such as reaching for direct parent/child instance references or trying to mutate and synchronize multiple copies of the state via events. Both of these patterns are brittle and quickly lead to unmaintainable code.
4848

4949
So why don't we extract the shared state out of the components, and manage it in a global singleton? With this, our component tree becomes a big "view", and any component can access the state or trigger actions, no matter where they are in the tree!
5050

0 commit comments

Comments
 (0)