Skip to content
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

docs: translation for reference/react-dom/createPortal (#436) #482

Closed
wants to merge 3 commits into from
Closed

docs: translation for reference/react-dom/createPortal (#436) #482

wants to merge 3 commits into from

Conversation

dibaliqaja
Copy link
Contributor

@dibaliqaja dibaliqaja marked this pull request as draft April 28, 2023 12:00
@dibaliqaja dibaliqaja marked this pull request as ready for review April 28, 2023 12:01
@dibaliqaja dibaliqaja marked this pull request as draft April 28, 2023 12:01
@dibaliqaja dibaliqaja mentioned this pull request Apr 28, 2023
@github-actions
Copy link

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

@github-actions
Copy link

github-actions bot commented May 1, 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! 🙌

@r17x r17x requested a review from resir014 May 2, 2023 14:33
@@ -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.
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
`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.
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
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.

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.

createPortal
3 participants