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: src/content/learn/thinking-in-react.md
+3-11Lines changed: 3 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -265,19 +265,11 @@ Im vorigen Schritt hast du zwei Zustände in dieser Anwendung gefunden: den Such
265
265
266
266
Gehen wir jetzt unsere Strategie für sie durch:
267
267
268
-
<<<<<<< HEAD
269
268
1.**Identifiziere Komponenten, die einen State verwenden:**
270
-
*Die "Produkttabelle" muss die Produktliste nach diesem State filtern (Suchtext und Wert des Kontrollkästchens).
271
-
*Die "SearchBar" muss diesen State anzeigen (Suchtext und Wert des Kontrollkästchens).
269
+
*`ProductTable` muss die Produktliste nach diesem State filtern (Suchtext und Wert des Kontrollkästchens).
270
+
*`SearchBar` muss diesen State anzeigen (Suchtext und Wert des Kontrollkästchens).
272
271
1.**Finde ihre gemeinsame übergeordnete Komponente:** Die erste übergeordnete Komponente, die beide Komponenten gemeinsam haben, ist `FilterableProductTable`.
273
-
2.**Entscheide, wo der State bleibt**: Wir behalten den Filtertext und die geprüften Statewerte in "FilterableProductTable".
274
-
=======
275
-
1.**Identify components that use state:**
276
-
*`ProductTable` needs to filter the product list based on that state (search text and checkbox value).
277
-
*`SearchBar` needs to display that state (search text and checkbox value).
278
-
2.**Find their common parent:** The first parent component both components share is `FilterableProductTable`.
279
-
3.**Decide where the state lives**: We'll keep the filter text and checked state values in `FilterableProductTable`.
280
-
>>>>>>> 9467bc58868e66c53ca9385c8531dcf7b02178c2
272
+
2.**Entscheide, wo der State bleibt**: Wir behalten den Filtertext und die geprüften Statewerte in `FilterableProductTable`.
281
273
282
274
Die Statewerte werden also in "FilterableProductTable" gespeichert.
0 commit comments