-
Notifications
You must be signed in to change notification settings - Fork 254
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
base: main
Are you sure you want to change the base?
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! 🙌 |
- `componentWillUnmount` - `componentWillReceiveProps` - `componentWillUpdate` - `getChildContext`
- UNSAFE_componentWillMount
- 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
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Please review @mhaidarhanif @zainfathoni @mazipan @resir014 |
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.
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) |
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.
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) |
|
||
</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. |
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.
`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. |
Closes #548
Description
Translate the Component page.
Page URL: https://id.react.dev/reference/react/Component