Skip to content

docs: translate Conditional Rendering #536

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

Merged
merged 3 commits into from
May 3, 2023
Merged

Conversation

resir014
Copy link
Member

@resir014 resir014 commented May 2, 2023

Closes #431

Description

Translate the Conditional Rendering page.
Page URL: https://id.react.dev/learn/conditional-rendering

@github-actions
Copy link

github-actions bot commented May 2, 2023

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

* Di React, Anda dapat mengontrol logika percabangan dengan JavaScript.
* Anda dapat mengembalikan ekspresi JSX secara kondisional dengan pernyataan `if`.
* Anda dapat menyimpan beberapa JSX secara kondisional ke sebuah variabel dan kemudian menyertakannya di dalam JSX lain dengan menggunakan kurung kurawal.
* Dalam JSX, `{cond ? <A /> : <B />}` berarti *"jika `cond`, render `<A />`, sebaliknya `<B />`"*.
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
* Dalam JSX, `{cond ? <A /> : <B />}` berarti *"jika `cond`, render `<A />`, sebaliknya `<B />`"*.
* Dalam JSX, `{cond ? <A /> : <B />}` berarti *"jika `cond`, *render* `<A />`, sebaliknya `<B />`"*.

Copy link
Member Author

Choose a reason for hiding this comment

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

@r17x Kayaknya karena ini di udah di dalam italic, jadi gak usah. Nanti italic-nya juga "ditimpa" sama italic yang di luar.

* Anda dapat mengembalikan ekspresi JSX secara kondisional dengan pernyataan `if`.
* Anda dapat menyimpan beberapa JSX secara kondisional ke sebuah variabel dan kemudian menyertakannya di dalam JSX lain dengan menggunakan kurung kurawal.
* Dalam JSX, `{cond ? <A /> : <B />}` berarti *"jika `cond`, render `<A />`, sebaliknya `<B />`"*.
* Dalam JSX, `{cond && <A />}` berarti *"jika `cond`, render `<A />`, sebaliknya jangan render apa pun"*.
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
* Dalam JSX, `{cond && <A />}` berarti *"jika `cond`, render `<A />`, sebaliknya jangan render apa pun"*.
* Dalam JSX, `{cond && <A />}` berarti *"jika `cond`, *render* `<A />`, sebaliknya jangan *render* apa pun"*.

Copy link
Member Author

Choose a reason for hiding this comment

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

@r17x Kayaknya karena ini di udah di dalam italic, jadi gak usah. Nanti italic-nya juga "ditimpa" sama italic yang di luar.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh iya aku gak lihat italicnya yang diujung. Okay2

@r17x r17x merged commit 6269e9e into main May 3, 2023
r17x added a commit that referenced this pull request May 8, 2023
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.

Conditional Rendering
2 participants