-
Notifications
You must be signed in to change notification settings - Fork 264
docs: translation for reference/react-dom/createPortal (#436) #482
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! 🙌 |
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! 🙌 |
@@ -4,7 +4,7 @@ title: createPortal | |||
|
|||
<Intro> | |||
|
|||
`createPortal` lets you render some children into a different part of the DOM. | |||
`createPortal` memungkinkan Anda merender beberapa *children* ke bagian yang berbeda dari DOM. |
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.
`createPortal` memungkinkan Anda merender beberapa *children* ke bagian yang berbeda dari DOM. | |
`createPortal` memungkinkan Anda me-*render* beberapa *children* ke bagian yang berbeda dari DOM. |
Untuk kata seperti ini merender, ditulis dengan "me-render".
Lihat referensinya disini.
@@ -125,15 +125,15 @@ Notice how the second paragraph visually appears outside the parent `<div>` with | |||
</body> | |||
``` | |||
|
|||
A portal only changes the physical placement of the DOM node. In every other way, the JSX you render into a portal acts as a child node of the React component that renders it. For example, the child can access the context provided by the parent tree, and events still bubble up from children to parents according to the React tree. | |||
Portal hanya mengubah penempatan kerangka dari *node* DOM. Dalam hal lain, JSX yang Anda render ke dalam portal bertindak sebagai *node child* dari komponen React yang merendernya. Sebagai contoh, *children* dapat mengakses konteks yang disediakan oleh *parent tree*, dan kejadian yang bertambah dari *children* ke *parent* sesuai dengan susunan React. |
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.
Portal hanya mengubah penempatan kerangka dari *node* DOM. Dalam hal lain, JSX yang Anda render ke dalam portal bertindak sebagai *node child* dari komponen React yang merendernya. Sebagai contoh, *children* dapat mengakses konteks yang disediakan oleh *parent tree*, dan kejadian yang bertambah dari *children* ke *parent* sesuai dengan susunan React. | |
Portal hanya mengubah penempatan kerangka dari simpul DOM. Dalam hal lain, JSX yang Anda render ke dalam portal bertindak sebagai simpul anaknya (*node child*) dari komponen React yang me-render-nya. Sebagai contoh, Anaknya (*children*) dapat mengakses konteks yang disediakan oleh pohon induknya (*parent tree*), dan kejadian yang bertambah dari anak *children* ke induk (*parent*) sesuai dengan susunan React. |
Closes #436
Translating https://id.react.dev/reference/react-dom/createPortal
Reference: #330