@@ -4,9 +4,12 @@ Managing State
44.. toctree ::
55 :hidden:
66
7- structuring-your -state/index
8- shared -component-state/index
7+ how-to-structure -state/index
8+ sharing -component-state/index
99 when-and-how-to-reset-state/index
10+ simplifying-updates-with-reducers/index
11+ deeply-sharing-state-with-contexts/index
12+ combining-contexts-and-reducers/index
1013
1114.. dropdown :: :octicon:`bookmark-fill;2em` What You'll Learn
1215 :color: info
@@ -15,14 +18,15 @@ Managing State
1518
1619 .. grid :: 1 2 2 2
1720
18- .. grid-item-card :: :octicon:`code-square` Structuring Your State
19- :link: structuring-your -state/index
21+ .. grid-item-card :: :octicon:`organization` How to Structure State
22+ :link: how-to-structure -state/index
2023 :link-type: doc
2124
22- Make it easy to reason about your application by organizing its state.
25+ Make it easy to reason about your application with strategies for organizing
26+ state.
2327
24- .. grid-item-card :: :octicon:`link` Shared Component State
25- :link: shared -component-state/index
28+ .. grid-item-card :: :octicon:`link` Sharing Component State
29+ :link: sharing -component-state/index
2630 :link-type: doc
2731
2832 Allow components to vary vary together, by lifting state into common
@@ -35,8 +39,37 @@ Managing State
3539 Control if and how state is preserved by understanding it's relationship to
3640 the "UI tree".
3741
42+ .. grid-item-card :: :octicon:`plug` Simplifying Updates with Reducers
43+ :link: simplifying-updates-with-reducers/index
44+ :link-type: doc
45+
46+ Consolidate state update logic outside your component in a single function,
47+ called a βreducer".
48+
49+ .. grid-item-card :: :octicon:`broadcast` Deeply Sharing State with Contexts
50+ :link: deeply-sharing-state-with-contexts/index
51+ :link-type: doc
52+
53+ Instead of passing shared state down deep component trees, bring state into
54+ "contexts" instead.
55+
56+ .. grid-item-card :: :octicon:`rocket` Combining Contexts and Reducers
57+ :link: combining-contexts-and-reducers/index
58+ :link-type: doc
59+
60+ You can combine reducers and context together to manage state of a complex
61+ screen.
3862
39- Section 4: Shared Component State
63+
64+ Section 1: How to Structure State
65+ ---------------------------------
66+
67+ .. note ::
68+
69+ Under construction π§
70+
71+
72+ Section 2: Shared Component State
4073---------------------------------
4174
4275Sometimes, you want the state of two components to always change together. To do it,
@@ -49,13 +82,46 @@ state, the state represents the food name. Note how the component ``Table`` gets
4982at each change of state. The component is observing the state and reacting to state
5083changes automatically, just like it would do in React.
5184
52- .. idom :: shared -component-state/_examples/synced_inputs
85+ .. idom :: sharing -component-state/_examples/synced_inputs
5386
5487.. card ::
55- :link: shared -component-state/index
88+ :link: sharing -component-state/index
5689 :link-type: doc
5790
5891 :octicon: `book ` Read More
5992 ^^^^^^^^^^^^^^^^^^^^^^^^^
6093
6194 Allow components to vary vary together, by lifting state into common parents.
95+
96+
97+ Section 3: When and How to Reset State
98+ --------------------------------------
99+
100+ .. note ::
101+
102+ Under construction π§
103+
104+
105+ Section 4: Simplifying Updates with Reducers
106+ --------------------------------------------
107+
108+ .. note ::
109+
110+ Under construction π§
111+
112+
113+ Section 5: Deeply Sharing State with Contexts
114+ ---------------------------------------------
115+
116+ .. note ::
117+
118+ Under construction π§
119+
120+
121+
122+ Section 6: Combining Contexts and Reducers
123+ ------------------------------------------
124+
125+ .. note ::
126+
127+ Under construction π§
0 commit comments