Skip to content

Commit 54ca755

Browse files
🔀 Fix: merge conflicts
1 parent fe865c0 commit 54ca755

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

src/content/learn/thinking-in-react.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -265,19 +265,11 @@ props మరియు state భిన్నంగా ఉంటాయి, కా
265265

266266
ఇప్పుడు వాటి కోసం మన వ్యూహాన్ని అమలు చేద్దాం:
267267

268-
<<<<<<< HEAD
269268
1. **state ని ఉపయోగించే కాంపోనెంట్లను గుర్తించండి:**
270269
* `ProductTable` ఆ state (సెర్చ్ టెక్స్ట్ మరియు చెక్‌బాక్స్ వేల్యూ) ఆధారంగా ప్రోడక్ట్ లిస్ట్ను ఫిల్టర్ చేయాలి.
271270
* `SearchBar` ఆ state ని ప్రదర్శించాలి (సెర్చ్ టెక్స్ట్ మరియు చెక్‌బాక్స్ వేల్యూ).
272-
1. **వారి కామన్ పేరెంట్ను కనుగొనండి:** రెండు కాంపోనెంట్లు పంచుకునే మొదటి పేరెంట్ కాంపోనెంట్ `FilterableProductTable`.
273-
2. **state ఎక్కడ నివసిస్తుందో నిర్ణయించండి**: మేము ఫిల్టర్ టెక్స్ట్ మరియు చెక్ చేసిన state వేల్యూలను `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. **state ఎక్కడ నివసిస్తుందో నిర్ణయించండి**: మేము ఫిల్టర్ టెక్స్ట్ మరియు చెక్ చేసిన state వేల్యూలను `FilterableProductTable` లో ఉంచుతాము.
281273

282274
కాబట్టి state వేల్యూలు `FilterableProductTable` లో ఉంటాయి.
283275

src/content/learn/tutorial-tic-tac-toe.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,11 +1133,7 @@ export default function Board() {
11331133
11341134
<Note>
11351135
1136-
<<<<<<< HEAD
11371136
JavaScript [క్లోసురేష్స్ (closures)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Closures) ని సపోర్ట్ చేస్తుంది అంటే ఇన్నర్ ఫంక్షన్కు (ఉదా. `handleClick`) ఔటర్ ఫంక్షన్‌లో డిఫైన్ చేయబడిన వేరియబుల్స్ మరియు ఫంక్షన్‌లకు యాక్సెస్‌ను కలిగి ఉంటుంది (ఉదా. `Board`). `handleClick` ఫంక్షన్ `squares` state ని రీడ్ చేయగలదు మరియు `setSquares` మెథడ్ ని కాల్ చేయగలదు ఎందుకంటే అవి రెండూ `Board` ఫంక్షన్‌లో డిఫైన్ చేయబడ్డాయి.
1138-
=======
1139-
JavaScript supports [closures](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Closures) which means an inner function (e.g. `handleClick`) has access to variables and functions defined in an outer function (e.g. `Board`). The `handleClick` function can read the `squares` state and call the `setSquares` method because they are both defined inside of the `Board` function.
1140-
>>>>>>> 1697ae89a3bbafd76998dd7496754e5358bc1e9a
11411137
11421138
</Note>
11431139

0 commit comments

Comments
 (0)