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/passing-props-to-a-component.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,26 +1,26 @@
1
1
---
2
-
title: Passing Props to a Component
2
+
title: కంపోనెంట్కు Props పాస్ చేయడం
3
3
---
4
4
5
5
<Intro>
6
6
7
-
React components use *props*to communicate with each other. Every parent component can pass some information to its child components by giving them props. Props might remind you of HTML attributes, but you can pass any JavaScript value through them, including objects, arrays, and functions.
7
+
React కంపోనెంట్లు *props*ను ఒకదానితో ఒకటి కమ్యూనికేట్ చేసుకునేందుకు ఉపయోగిస్తాయి. ప్రతి పేరెంట్ కంపోనెంట్ దాని చైల్డ్ కంపోనెంట్లకు props ద్వారా కొంత సమాచారం పాస్ చేయవచ్చు. Props మీకు HTML ఆట్రిబ్యుట్లను గుర్తు చేయవచ్చు, కానీ మీరు వాటి ద్వారా ఆబ్జెక్ట్లు, అర్రేలు, ఫంక్షన్లు వంటి ఏదైనా జావాస్క్రిప్ట్ విలువలను పాస్ చేయవచ్చు.
8
8
9
9
</Intro>
10
10
11
11
<YouWillLearn>
12
12
13
-
*How to pass props to a component
14
-
*How to read props from a component
15
-
*How to specify default values for props
16
-
*How to pass some JSX to a component
17
-
*How props change over time
13
+
*ఎలా props ను ఒక కంపోనెంట్కు పాస్ చేయాలి
14
+
*ఎలా props ను ఒక కంపోనెంట్లో చదవాలి
15
+
*props కోసం డిఫాల్ట్ విలువలు ఎలా స్పెసిఫై చేయాలి props
16
+
*కొంత JSX ను కంపోనెంట్కు ఎలా పాస్ చేయాలి
17
+
*ఎలా props కాలక్రమంలో మారతాయి
18
18
19
19
</YouWillLearn>
20
20
21
-
## Familiar props {/*familiar-props*/}
21
+
## తెలిసిన props {/*familiar-props*/}
22
22
23
-
Props are the information that you pass to a JSX tag. For example, `className`, `src`, `alt`, `width`, and`height`are some of the props you can pass to an `<img>`:
23
+
Props అనేవి మీరు JSX ట్యాగ్కు పాస్ చేసే సమాచారం. ఉదాహరణకు, `className`, `src`, `alt`, `width`, మరియు`height`ఇవి మీరు `<img>` ట్యాగ్కు పాస్ చేయగల props:
24
24
25
25
<Sandpack>
26
26
@@ -51,11 +51,11 @@ body { min-height: 120px; }
51
51
52
52
</Sandpack>
53
53
54
-
The props you can pass to an `<img>`tag are predefined (ReactDOM conforms to [the HTML standard](https://www.w3.org/TR/html52/semantics-embedded-content.html#the-img-element)). But you can pass any props to *your own* components, such as `<Avatar>`, to customize them. Here's how!
54
+
మీరు `<img>`ట్యాగ్కు పాస్ చేయగల props ముందే నిర్ణయించినవి (ReactDOM దీనికి అనుగుణంగా ఉంటుంది [HTML ప్రమాణం](https://www.w3.org/TR/html52/semantics-embedded-content.html#the-img-element)). మీరు ఏవైనా ప్రాప్లను *మీ స్వంత* భాగాలకు పాస్ చేయవచ్చు, ఉదాహరణకు `<Avatar>`, వాటిని అనుకూలీకరించడానికి (to customize them). ఇలా చేయండి!
55
55
56
-
## Passing props to a component {/*passing-props-to-a-component*/}
56
+
## కంపోనెంట్కు props పాస్ చేయడం {/*passing-props-to-a-component*/}
57
57
58
-
In this code, the `Profile`component isn't passing any props to its child component, `Avatar`:
58
+
ఈ కోడ్లో, `Profile`కంపోనెంట్ తన చైల్డ్ కంపోనెంట్ అయిన `Avatar` కు ఎలాంటి props ని పాస్ చేయడంలేదు:
59
59
60
60
```js
61
61
exportdefaultfunctionProfile() {
@@ -65,9 +65,9 @@ export default function Profile() {
65
65
}
66
66
```
67
67
68
-
You can give `Avatar`some props in two steps.
68
+
మీరు `Avatar`కు రెండు రకాలుక props ఇవ్వవచ్చు.
69
69
70
-
### Step 1: Pass props to the child component {/*step-1-pass-props-to-the-child-component*/}
0 commit comments