Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update adding-interactivity.md #105

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sandeepvinnu
Copy link

I Translated this page into Telugu.

I Translated this page into Telugu.
Copy link
Collaborator

@srikanth-kandi srikanth-kandi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First of all Thanks for your contribution @sandeepvinnu

But based on your translation, I guess you didn't worked on the translated content and didn't checked it locally on your machine.

  • You missed the glossary terms which are not required to be translated to Telugu. For example: React, state, props etc.
  • You also missed the basic syntax of the Markdown and translated the hyperlinks also.
  • You didn't followed the sentence by sentence translation.
  • You didn't read the translated content before making a pull request.
  • Added multiple new lines before and after the translated content, which make me review the pull request harder.

So to further review this pull request, please try to implement the requested changes.

Thank you

@@ -1,30 +1,32 @@
---
title: Adding Interactivity
శీర్షిక: ఇంటరాక్టివిటీ చేయడం
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
శీర్షిక: ఇంటరాక్టివిటీ చేయడం
title: ఇంటరాక్టివిటీ ని జోడించటం


Or, if you're already familiar with these topics, why not read about [Managing State](/learn/managing-state)?
లేదా, మీకు ఈ అంశాల గురించి ఇప్పటికే తెలిసి ఉంటే, [మేనేజింగ్ స్టేట్](/learn/managing-state) గురించి ఎందుకు చదవకూడదు?
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
లేదా, మీకు ఈ అంశాల గురించి ఇప్పటికే తెలిసి ఉంటే, [మేనేజింగ్ స్టేట్](/learn/managing-state) గురించి ఎందుకు చదవకూడదు?
లేదా, మీకు ఈ టాపిక్స్ గురించి ఇప్పటికే తెలిసి ఉంటే, [మేనేజింగ్ state](/learn/managing-state) గురించి ఎందుకు చదవకూడదు?


Head over to [Responding to Events](/learn/responding-to-events) to start reading this chapter page by page!
ఈ అధ్యాయాన్ని పేజీలవారీగా చదవడం ప్రారంభించడానికి [ఈవెంట్‌లకు ప్రతిస్పందించడం](/learn/responding-to-events)కి వెళ్లండి!
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
అధ్యాయాన్ని పేజీలవారీగా చదవడం ప్రారంభించడానికి [ఈవెంట్‌లకు ప్రతిస్పందించడం](/learn/responding-to-events)కి వెళ్లండి!
చాప్టర్ ని పేజీలవారీగా చదవడం ప్రారంభించడానికి [ఈవెంట్లకు రెస్పాండ్ అవ్వడం](/learn/responding-to-events) కి వెళ్లండి!

@@ -789,12 +795,12 @@ function ItemList({ artworks, onToggle }) {

<LearnMore path="/learn/updating-arrays-in-state">

Read **[Updating Arrays in State](/learn/updating-arrays-in-state)** to learn how to update arrays correctly.
శ్రేణులను సరిగ్గా ఎలా అప్‌డేట్ చేయాలో తెలుసుకోవడానికి **[రాష్ట్రంలో శ్రేణులను అప్‌డేట్ చేయడం](/learn/updating-arrays-in-state)** చదవండి.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
శ్రేణులను సరిగ్గా ఎలా అప్‌డేట్ చేయాలో తెలుసుకోవడానికి **[రాష్ట్రంలో శ్రేణులను అప్‌డేట్ చేయడం](/learn/updating-arrays-in-state)** చదవండి.
array లను సరిగ్గా ఎలా అప్‌డేట్ చేయాలో తెలుసుకోవడానికి **[state లో array లను అప్‌డేట్ చేయడం](/learn/updating-arrays-in-state)** గురించి చదవండి.

@@ -705,7 +711,7 @@ function ItemList({ artworks, onToggle }) {

</Sandpack>

If copying arrays in code gets tedious, you can use a library like [Immer](https://github.com/immerjs/use-immer) to reduce repetitive code:
కోడ్‌లో శ్రేణులను కాపీ చేయడం విసుగు తెప్పిస్తే, పునరావృత కోడ్‌ను తగ్గించడానికి మీరు [Immer](https://github.com/immerjs/use-immer) వంటి లైబ్రరీని ఉపయోగించవచ్చు:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
కోడ్‌లో శ్రేణులను కాపీ చేయడం విసుగు తెప్పిస్తే, పునరావృత కోడ్‌ను తగ్గించడానికి మీరు [Immer](https://github.com/immerjs/use-immer) వంటి లైబ్రరీని ఉపయోగించవచ్చు:
కోడ్‌లో array లను కాపీ చేయడం విసుగు తెప్పిస్తే, రిపిటీటివ్ కోడ్‌ను తగ్గించడానికి మీరు [Immer](https://github.com/immerjs/use-immer) అనే లైబ్రరీని ఉపయోగించవచ్చు:

@@ -366,7 +370,8 @@ setScore(score + 1); // setScore(0 + 1);
console.log(score); // 0
```

You can fix this by passing an *updater function* when setting state. Notice how replacing `setScore(score + 1)` with `setScore(s => s + 1)` fixes the "+3" button. This lets you queue multiple state updates.
మీరు స్థితిని సెట్ చేస్తాయినప్పుడు *అప్‌డేటర్ ఫంక్షన్* పాస్ చేయడందరికీ ఈ సమస్యను సరిచేయవచ్చు. గమనించండి హాయిగా `setScore(score + 1)` ను `setScore(s => s + 1)` తో మార్చినప్పుడు "+3" బటన్ సరిగ్గా కనిపిస్తుంది. ఇది మరియుండు మరికొన్ని స్థితి నవీకరణలను మేరకు చేసే అవకాశం ఇస్తుంది.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
మీరు స్థితిని సెట్ చేస్తాయినప్పుడు *అప్‌డేటర్ ఫంక్షన్* పాస్ చేయడందరికీ ఈ సమస్యను సరిచేయవచ్చు. గమనించండి హాయిగా `setScore(score + 1)` ను `setScore(s => s + 1)` తో మార్చినప్పుడు "+3" బటన్ సరిగ్గా కనిపిస్తుంది. ఇది మరియుండు మరికొన్ని స్థితి నవీకరణలను మేరకు చేసే అవకాశం ఇస్తుంది.
మీరు state ని సెట్ చేసేటప్పుడు *అప్‌డేటర్ ఫంక్షన్* ని పాస్ చేయడం ద్వారా దీన్ని పరిష్కరించవచ్చు. `setScore(score + 1)` ని `setScore(s => s + 1)` తో రీప్లేస్ చేయడం ద్వారా అది "+3" బటన్‌ను ఎలా ఫిక్స్ చేస్తుందో గమనించండి. ఇది మల్టిపుల్ state అప్డేట్లను క్కు చేయడానికి మిమ్మల్ని అనుమతిస్తుంది.

@@ -402,15 +407,16 @@ button { display: inline-block; margin: 10px; font-size: 20px; }

<LearnMore path="/learn/queueing-a-series-of-state-updates">

Read **[Queueing a Series of State Updates](/learn/queueing-a-series-of-state-updates)** to learn how to queue a sequence of state updates.
స్టేట్ అప్‌డేట్‌ల క్రమాన్ని ఎలా క్యూలో ఉంచాలో తెలుసుకోవడానికి **[స్టేట్ అప్‌డేట్‌ల శ్రేణిని వరుసలో ఉంచడం](/నేర్చుకోండి/క్యూయింగ్-a-series-of-state-updates)** చదవండి.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
స్టేట్ అప్‌డేట్‌ల క్రమాన్ని ఎలా క్యూలో ఉంచాలో తెలుసుకోవడానికి **[స్టేట్ అప్‌డేట్‌ల శ్రేణిని వరుసలో ఉంచడం](/నేర్చుకోండి/క్యూయింగ్-a-series-of-state-updates)** చదవండి.
state అప్‌డేట్‌ల సీక్వెన్స్ ని ఎలా క్యూలో ఉంచాలో తెలుసుకోవడానికి **[state అప్‌డేట్‌ల సెట్‌ను క్రమబద్ధీకరించడం](/learn/queueing-a-series-of-state-updates)** గురించి చదవండి.


</LearnMore>

## Updating objects in state {/*updating-objects-in-state*/}
## స్టేట్ట్రంలోని వస్తువులను నవీకరిస్తోంది {/*updating-objects-in-state*/}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## స్టేట్ట్రంలోని వస్తువులను నవీకరిస్తోంది {/*updating-objects-in-state*/}
## state లో ఆబ్జెక్ట్‌లను అప్‌డేట్ చేయడం {/*updating-objects-in-state*/}

## Updating objects in state {/*updating-objects-in-state*/}
## స్టేట్ట్రంలోని వస్తువులను నవీకరిస్తోంది {/*updating-objects-in-state*/}

రియాక్ట్ స్టేట్ ఏదైనా రకంలో జావాస్క్రిప్ట్ విలువను ధరించవచ్చు, స్థితిలో నిలువాలు మరియు అర్రేలు మార్చడానికి డైరెక్ట్‌గా మారాలేదు. స్టేట్ట్రంలో అనివాసించే వస్తువులను మరియు అర్రేలను నవీకరించడానికి, మీరు కొనసాగుతున్న కొత్తవిను సృష్టించండి (లేదా ఇప్పటికే ఉండేవాటిని నకలి చేయండి), మరియు ఆ కోపిని ఉపయోగించి స్టేట్ట్రంని నవీకరించండి.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
రియాక్ట్ స్టేట్ ఏదైనా రకంలో జావాస్క్రిప్ట్ విలువను ధరించవచ్చు, స్థితిలో నిలువాలు మరియు అర్రేలు మార్చడానికి డైరెక్ట్గా మారాలేదు. స్టేట్ట్రంలో అనివాసించే వస్తువులను మరియు అర్రేలను నవీకరించడానికి, మీరు కొనసాగుతున్న కొత్తవిను సృష్టించండి (లేదా ఇప్పటికే ఉండేవాటిని నకలి చేయండి), మరియుకోపిని ఉపయోగించి స్టేట్ట్రంని నవీకరించండి.
state ఆబ్జెక్ట్‌లతో సహా ఎలాంటి JavaScript వేల్యూ ని అయినా కలిగి ఉంటుంది. కానీ మీరు డైరెక్ట్ గా React state లో ఉంచే ఆబ్జెక్ట్లను మరియు array లను చేంజ్ చేయకూడదు. బదులుగా, మీరు ఆబ్జెక్ట్ మరియు array ని అప్‌డేట్ చేయాలనుకున్నప్పుడు, మీరు కొత్తదాన్ని సృష్టించాలి (లేదా ఇప్పటికే ఉన్న దాని కాపీని తయారు చేయాలి), ఆపైకాపీని ఉపయోగించడానికి state ను అప్‌డేట్ చేయాలి.


Usually, you will use the `...` spread syntax to copy objects and arrays that you want to change. For example, updating a nested object could look like this:
సాధారణంగా, మీరు మార్చడానికి కొనసాగుతున్న వస్తువులను కాపీ చేయడానికి `...` విస్తరణ సింటాక్స్‌ను వాడవచ్చు. ఉదాహరణకు, ఒక అడుగులో ఉన్న వస్తువును నవీకరించుటకు ఇలా ఉండవచ్చు:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
సాధారణంగా, మీరు మార్చడానికి కొనసాగుతున్న వస్తువులను కాపీ చేయడానికి `...` విస్తరణ సింటాక్స్‌ను వాడవచ్చు. ఉదాహరణకు, ఒక అడుగులో ఉన్న వస్తువును నవీకరించుటకు ఇలా ఉండవచ్చు:
సాధారణంగా, మీరు మార్చాలనుకుంటున్న ఆబ్జెక్ట్లు మరియు array లను కాపీ చేయడానికి మీరు `...` స్ప్రెడ్ సింటాక్స్‌ని ఉపయోగిస్తారు. ఉదాహరణకు, నెస్టెడ్ ఆబ్జెక్ట్ ను అప్డేట్ చేయడం ఇలా ఉంటుంది:

@srikanth-kandi
Copy link
Collaborator

Hey @sandeepvinnu, are you working on implementing the requested changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants