-
Notifications
You must be signed in to change notification settings - Fork 263
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
Translate higher order components #158
Conversation
Deploy preview for idreactjs ready! Built with commit 5561fcc |
Deploy preview for id-reactjs ready! Built with commit 5561fcc |
|
thanks for the feedback @resir014...i will re-review my work based on your suggestion above |
1499224
to
8ff8a1c
Compare
4f10c8f
to
6641476
Compare
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.
@andriawan Just a few changes and it's good to go:
|
||
React's diffing algorithm (called reconciliation) uses component identity to determine whether it should update the existing subtree or throw it away and mount a new one. If the component returned from `render` is identical (`===`) to the component from the previous render, React recursively updates the subtree by diffing it with the new one. If they're not equal, the previous subtree is unmounted completely. | ||
Algoritma _React's diffing_ (disebut _reconciliation_) menggunakan identitas komponen untuk menentukan apakah subtree yang ada perlu diperbarui atau _mount_ yang baru. Jika komponen yang dikembalikan dari `render` sama (`===`) dengan _render_ komponen sebelumnya, React memperbarui subtree secara rekursif dengan membandingkan dengan yang baru. Jika tidak sama, subtree sebelumnya akan diganti seluruhnya. |
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.
Algoritma _React's diffing_ (disebut _reconciliation_) menggunakan identitas komponen untuk menentukan apakah subtree yang ada perlu diperbarui atau _mount_ yang baru. Jika komponen yang dikembalikan dari `render` sama (`===`) dengan _render_ komponen sebelumnya, React memperbarui subtree secara rekursif dengan membandingkan dengan yang baru. Jika tidak sama, subtree sebelumnya akan diganti seluruhnya. | |
Algoritma _diffing_ React (disebut _reconciliation_) menggunakan identitas komponen untuk menentukan apakah subtree yang ada perlu diperbarui atau _mount_ yang baru. Jika komponen yang dikembalikan dari `render` sama (`===`) dengan _render_ komponen sebelumnya, React memperbarui subtree secara rekursif dengan membandingkan dengan yang baru. Jika tidak sama, subtree sebelumnya akan diganti seluruhnya. |
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.
got it...i'll fix it
|
||
```js | ||
const EnhancedComponent = higherOrderComponent(WrappedComponent); | ||
``` | ||
|
||
Whereas a component transforms props into UI, a higher-order component transforms a component into another component. | ||
Sebaliknya saat sebuah komponen mengubah _props_ menjadi antar muka pengguna (UI), _higher-order component_ mengubah sebuah komponen menjadi komponen yang lainnya. |
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.
Sebaliknya saat sebuah komponen mengubah _props_ menjadi antar muka pengguna (UI), _higher-order component_ mengubah sebuah komponen menjadi komponen yang lainnya. | |
Sebaliknya saat sebuah komponen mengubah _props_ menjadi antarmuka pengguna (UI), _higher-order component_ mengubah sebuah komponen menjadi komponen yang lainnya. |
"antarmuka" - digabung.
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.
okay, thanks for the feedback
- antar muka to antarmuka anda - Algoritma React's diffing to Algoritma diffing React
please check again @resir014, i have made several change based on your suggestion |
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.
All good. Thanks for your help!
Dear maintainers,
Please review this translation. I have several concerns about some term which i am confused to translate. They are:
Please help me solve that @resir014 @regalius