Skip to content

Commit e9230c9

Browse files
Translate: Completed translation up to line 70
1 parent f764e60 commit e9230c9

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/content/learn/passing-props-to-a-component.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
---
2-
title: Passing Props to a Component
2+
title: కంపోనెంట్‌కు Props పాస్ చేయడం
33
---
44

55
<Intro>
66

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 ఆట్రిబ్యుట్‌లను గుర్తు చేయవచ్చు, కానీ మీరు వాటి ద్వారా ఆబ్జెక్ట్‌లు, అర్రేలు, ఫంక్షన్‌లు వంటి ఏదైనా జావాస్క్రిప్ట్ విలువలను పాస్ చేయవచ్చు.
88

99
</Intro>
1010

1111
<YouWillLearn>
1212

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 కాలక్రమంలో మారతాయి
1818

1919
</YouWillLearn>
2020

21-
## Familiar props {/*familiar-props*/}
21+
## తెలిసిన props {/*familiar-props*/}
2222

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:
2424

2525
<Sandpack>
2626

@@ -51,11 +51,11 @@ body { min-height: 120px; }
5151

5252
</Sandpack>
5353

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). ఇలా చేయండి!
5555

56-
## Passing props to a component {/*passing-props-to-a-component*/}
56+
## కంపోనెంట్‌కు props పాస్ చేయడం {/*passing-props-to-a-component*/}
5757

58-
In this code, the `Profile` component isn't passing any props to its child component, `Avatar`:
58+
ఈ కోడ్‌లో, `Profile` కంపోనెంట్ తన చైల్డ్ కంపోనెంట్ అయిన `Avatar` కు ఎలాంటి props ని పాస్ చేయడంలేదు:
5959

6060
```js
6161
export default function Profile() {
@@ -65,9 +65,9 @@ export default function Profile() {
6565
}
6666
```
6767

68-
You can give `Avatar` some props in two steps.
68+
మీరు `Avatar` కు రెండు రకాలుక props ఇవ్వవచ్చు.
6969

70-
### Step 1: Pass props to the child component {/*step-1-pass-props-to-the-child-component*/}
70+
### స్టెప్ 1: చైల్డ్ కంపోనెంట్‌కు props పాస్ చేయండి. {/*step-1-pass-props-to-the-child-component*/}
7171

7272
First, pass some props to `Avatar`. For example, let's pass two props: `person` (an object), and `size` (a number):
7373

0 commit comments

Comments
 (0)