Skip to content

Conversation

sandeepvinnu
Copy link
Contributor

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

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

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) గురించి ఎందుకు చదవకూడదు?

<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)** గురించి చదవండి.

</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) అనే లైబ్రరీని ఉపయోగించవచ్చు:

</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 ను అప్‌డేట్ చేయాలి.

State can hold any kind of JavaScript value, including objects. But you shouldn't change objects and arrays that you hold in the React state directly. Instead, when you want to update an object and array, you need to create a new one (or make a copy of an existing one), and then update the state to use that copy.

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?

@srikanth-kandi srikanth-kandi linked an issue Jul 20, 2024 that may be closed by this pull request
@srikanth-kandi srikanth-kandi dismissed their stale review February 9, 2025 09:30

I've manually applied suggestions using batch commit.

Copy link

github-actions bot commented Feb 9, 2025

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@srikanth-kandi srikanth-kandi merged commit 2adb344 into reactjs:main Feb 9, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding Interactivity
2 participants