Skip to content

docs: translate Choosing State Structure - #502

Merged
resir014 merged 6 commits into
reactjs:mainfrom
dzakiafif:docs/translations/choose-state-structure
Jun 4, 2023
Merged

docs: translate Choosing State Structure#502
resir014 merged 6 commits into
reactjs:mainfrom
dzakiafif:docs/translations/choose-state-structure

Conversation

@dzakiafif

Copy link
Copy Markdown
Contributor

r17x
r17x approved these changes May 7, 2023
@github-actions

github-actionsBot commented May 7, 2023

Copy link
Copy Markdown

Size changes

Details

📦 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! 🙌

@r17x
r17x requested a review from mhaidarhanifMay 7, 2023 20:24
</YouWillLearn>

## Principles for structuring state {/*principles-for-structuring-state*/}
## Prinsip-prinsip untuk menstrukturkan *state*. {/*principles-for-structuring-state*/}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Not sure, tapi di sini sepertinya "menstrukturkan" bisa diterjemahkan dengan "menata"

Suggested change
## Prinsip-prinsip untuk menstrukturkan*state*. {/*principles-for-structuring-state*/}
## Prinsip-prinsip untuk menata*state*. {/*principles-for-structuring-state*/}

2. **Hindari kontradiksi dalam *state*.** Saat *state* diorganisir sedemikian rupa sehingga beberapa bagian *state* dapat saling bertentangan dan "tidak sependapat" satu sama lain, maka ini bisa meninggalkan celah untuk kesalahan. Coba hindari hal ini.
3. **Hindari *state* yang redundan.** Jika Anda dapat menghitung beberapa informasi dari *prop* komponen atau variabel *state* yang sudah ada selama *rendering*, maka Anda tidak perlu memasukkan informasi tersebut ke dalam *state* komponen tersebut.
4. **Hindari duplikasi dalam *state*.** Ketika data yang sama terduplikasi antara beberapa variabel *state*, atau dalam objek bertingkat, maka akan sulit menjaga sinkronisasi antara mereka. Kurangi duplikasi ketika memungkinkan.
5. **Hindari *state* yang sangat bertingkat.** *State* yang sangat hierarkis tidak sangat mudah untuk diperbarui. Ketika memungkinkan, lebih baik struktur *state* secara datar.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
5.**Hindari *state* yang sangat bertingkat.***State*yang sangat hierarkis tidak sangat mudah untuk diperbarui. Ketika memungkinkan, lebih baik struktur*state*secara datar.
5.**Hindari *state* yang sangat bertingkat.***State*dengan hierarkis yang dalam sangat tidak mudah untuk diperbarui. Saat memungkinkan, lebih baik menata*state*dengan datar.

Comment threadsrc/content/learn/choosing-the-state-structure.md Outdated
Comment threadsrc/content/learn/choosing-the-state-structure.md Outdated
Comment threadsrc/content/learn/choosing-the-state-structure.md Outdated
Comment threadsrc/content/learn/choosing-the-state-structure.md Outdated
Comment threadsrc/content/learn/choosing-the-state-structure.md Outdated
Comment threadsrc/content/learn/choosing-the-state-structure.md Outdated
Comment threadsrc/content/learn/choosing-the-state-structure.md Outdated
Comment threadsrc/content/learn/choosing-the-state-structure.md Outdated

@resir014resir014 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Some changes requested. Make sure to take a look at @mazipan's review items.

@dzakiafif

Copy link
Copy Markdown
ContributorAuthor

Some changes requested. Make sure to take a look at @mazipan's review items.

ok. will update as soon as possible mas. thanks.

@dzakiafif

Copy link
Copy Markdown
ContributorAuthor

sorry my bad. i forget to change github account T.T is it ok?

@dzakiafif
dzakiafif requested a review from resir014May 14, 2023 12:49
@dzakiafif

Copy link
Copy Markdown
ContributorAuthor

any update mas? @resir014

Comment threadsrc/content/learn/choosing-the-state-structure.md Outdated
Comment threadsrc/content/learn/choosing-the-state-structure.md Outdated
Comment threadsrc/content/learn/choosing-the-state-structure.md Outdated
Comment threadsrc/content/learn/choosing-the-state-structure.md Outdated
Co-authored-by: Irfan Maulana <mazipanneh@gmail.com>

@resir014resir014 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

All good. Thanks!

@resir014resir014 changed the title Docs: Translate Choosing state structuredocs: translate Choosing State StructureJun 3, 2023
@resir014
resir014 merged commit 185e575 into reactjs:mainJun 4, 2023
FelixFern pushed a commit to FelixFern/id.react.dev that referenced this pull request Jun 13, 2023
Co-authored-by: IntanNanda <intan.irnanda@sera.astra.co.id>
Co-authored-by: Irfan Maulana <mazipanneh@gmail.com>
Co-authored-by: Resi Respati <resir014@gmail.com>
Sign up for freeto 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.

Choosing the State Structure

5 participants

@dzakiafif@resir014@mazipan@r17x@IntanNanda