File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -265,19 +265,11 @@ td {
265
265
266
266
Давайте разберём их с помощью нашей стратегии:
267
267
268
- <<<<<<< HEAD
269
268
1 . ** Определите компоненты, которые используют состояния:**
270
269
* ` ProductTable ` фильтрует список товаров, основываясь на состояниях (поисковой запрос и значение чекбокса).
271
270
* ` SearchBar ` отображает состояния (поисковой запрос и значение чекбокса).
272
- 1 . ** Найдите их общего предка:** Первый общий родительский компонент для них -- ` FilterableProductTable ` .
273
- 2 . ** Определите, где будет находиться состояние** : Мы будем хранить текст фильтра и значение чекбокса в ` 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
- >>>>>>> 1697ae89a3bbafd76998dd7496754e5358bc1e9a
271
+ 2 . ** Найдите их общего предка:** Первый общий родительский компонент для них -- ` FilterableProductTable ` .
272
+ 3 . ** Определите, где будет находиться состояние** : Мы будем хранить текст фильтра и значение чекбокса в ` FilterableProductTable ` .
281
273
282
274
Итак, значения состояний будут находиться в ` FilterableProductTable ` .
283
275
You can’t perform that action at this time.
0 commit comments