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 Component(class) #571

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

aroyan
Copy link
Contributor

@aroyan aroyan commented May 30, 2023

Closes #548

Description

Translate the Component page.
Page URL: https://id.react.dev/reference/react/Component

@github-actions
Copy link

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

- `componentWillUnmount`
- `componentWillReceiveProps`
- `componentWillUpdate`
- `getChildContext`
- UNSAFE_componentWillUpdate
- static childContextTypes
- static contextTypes
- contextType
- defaultProps
- propTypes
- getDerivedStateFromError
- getDerivedStateFromProps
- Defining a class component
- Adding state to a class component
- Adding lifecycle methods to a class component
- Catching rendering errors with an error boundary
Copy link

vercel bot commented Mar 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
id-legacy-reactjs-org ⬜️ Ignored (Inspect) Visit Preview Mar 28, 2024 11:46pm

@aroyan
Copy link
Contributor Author

aroyan commented Mar 28, 2024

Please review @mhaidarhanif @zainfathoni @mazipan @resir014

Copy link
Collaborator

@mhaidarhanif mhaidarhanif left a comment

Choose a reason for hiding this comment

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

Because it seems there are some typos, please check again for a whole. Before we review it again.

Karena sepertinya masih ada beberapa typo, silakan dicek lagi dahulu secara keseluruhan. Sebelum di-review kembali

@@ -4,18 +4,18 @@ title: Component

<Pitfall>

We recommend defining components as functions instead of classes. [See how to migrate.](#alternatives)
Kami merekomendasikan mendefinisikan komponen sebagai fungsi dari pada kelas. [Lihat bagaimana cara migrasi.](#alternatives)
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
Kami merekomendasikan mendefinisikan komponen sebagai fungsi dari pada kelas. [Lihat bagaimana cara migrasi.](#alternatives)
Kami merekomendasikan mendefinisikan komponen sebagai fungsi daripada kelas. [Lihat bagaimana cara migrasi.](#alternatives)

https://kbbi.web.id/daripada


</Pitfall>

<Intro>

`Component` is the base class for the React components defined as [JavaScript classes.](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes) Class components are still supported by React, but we don't recommend using them in new code.
`Component` adalah kelas dasar untuk komponen React yang didefinisikan segabai [JavaScript classes.](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes) Kelas komponen masih disuport oleh React, tetapi kami tidak merekomendasikan untuk menggunakannya di kode baru.
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
`Component` adalah kelas dasar untuk komponen React yang didefinisikan segabai [JavaScript classes.](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes) Kelas komponen masih disuport oleh React, tetapi kami tidak merekomendasikan untuk menggunakannya di kode baru.
`Component` adalah kelas dasar untuk komponen React yang didefinisikan sebagai [JavaScript classes.](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes) Kelas komponen masih didukung oleh React, tetapi kami tidak merekomendasikan untuk menggunakannya di kode baru.

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.

Component
2 participants