-
Notifications
You must be signed in to change notification settings - Fork 264
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
Conversation
Size changes📦 Next.js Bundle Analysis for react-devThis 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 />`"*. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Dalam JSX, `{cond ? <A /> : <B />}` berarti *"jika `cond`, render `<A />`, sebaliknya `<B />`"*. | |
* Dalam JSX, `{cond ? <A /> : <B />}` berarti *"jika `cond`, *render* `<A />`, sebaliknya `<B />`"*. |
There was a problem hiding this comment.
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"*. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* 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"*. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
Co-authored-by: RiN <[email protected]>
Co-authored-by: RiN <[email protected]>
Closes #431
Description
Translate the Conditional Rendering page.
Page URL: https://id.react.dev/learn/conditional-rendering