@@ -384,13 +384,13 @@ export default function List() {
{person.name}:
{' ' + person.profession + ' '}
- known for {person.accomplishment}
+ yang terkenal dengan {person.accomplishment}
);
return (
- Scientists
+ Ilmuwan
);
@@ -401,32 +401,32 @@ export default function List() {
export const people = [{
id: 0,
name: 'Creola Katherine Johnson',
- profession: 'mathematician',
- accomplishment: 'spaceflight calculations',
+ profession: 'ahli matematika',
+ accomplishment: 'perhitungan penerbangan luar angkasa',
imageId: 'MK3eW3A'
}, {
id: 1,
name: 'Mario JosĂ© Molina-Pasquel HenrĂquez',
- profession: 'chemist',
- accomplishment: 'discovery of Arctic ozone hole',
+ profession: 'ahli kimia',
+ accomplishment: 'penemuan lubang ozon Arktik',
imageId: 'mynHUSa'
}, {
id: 2,
name: 'Mohammad Abdus Salam',
- profession: 'physicist',
- accomplishment: 'electromagnetism theory',
+ profession: 'ahli fisika',
+ accomplishment: 'teori elektromagnetik',
imageId: 'bE7W1ji'
}, {
id: 3,
name: 'Percy Lavon Julian',
- profession: 'chemist',
- accomplishment: 'pioneering cortisone drugs, steroids and birth control pills',
+ profession: 'ahli kimia',
+ accomplishment: 'perintis obat kortison, steroid dan pil KB',
imageId: 'IOjWm71'
}, {
id: 4,
name: 'Subrahmanyan Chandrasekhar',
- profession: 'astrophysicist',
- accomplishment: 'white dwarf star mass calculations',
+ profession: 'ahli astrofisika',
+ accomplishment: 'perhitungan massa bintang kerdil putih',
imageId: 'lrWQx8l'
}];
```
@@ -458,18 +458,18 @@ h2 { font-size: 20px; }
-Read **[Rendering Lists](/learn/rendering-lists)** to learn how to render a list of components, and how to choose a key.
+Baca **[Merender List](/learn/rendering-lists)** untuk mempelajari cara me-*render* daftar komponen dan cara memilih `key`.
-## Keeping components pure {/*keeping-components-pure*/}
+## Menjaga Komponen Tetap Murni {/*keeping-components-pure*/}
-Some JavaScript functions are *pure.* A pure function:
+Sebagian fungsi JavaScript adalah murni (*pure*). Sebuah fungsi murni:
-* **Minds its own business.** It does not change any objects or variables that existed before it was called.
-* **Same inputs, same output.** Given the same inputs, a pure function should always return the same result.
+* **Memperhatikan urusannya sendiri.** fungsi tidak mengubah objek atau variabel apapun yang ada sebelum fungsi dipanggil.
+* **_Input_ sama, _output_ sama.** Dengan *input* yang sama, sebuah fungsi murni harus selalu memiliki *output* yang sama.
-By strictly only writing your components as pure functions, you can avoid an entire class of baffling bugs and unpredictable behavior as your codebase grows. Here is an example of an impure component:
+Dengan hanya benar-benar menulis komponen Anda sebagai fungsi murni, Anda dapat menghindari seluruh *bug* yang membingungkan dan perilaku yang tidak dapat diprediksi saat kode Anda berkembang. Berikut ini adalah contoh komponen tidak murni:
@@ -477,9 +477,9 @@ By strictly only writing your components as pure functions, you can avoid an ent
let guest = 0;
function Cup() {
- // Bad: changing a preexisting variable!
+ // Buruk: memodifikasi variabel yang sudah ada sebelum Cup dipanggil!
guest = guest + 1;
- return Tea cup for guest #{guest}
;
+ return Cangkir teh untuk tamu #{guest}
;
}
export default function TeaSet() {
@@ -495,13 +495,13 @@ export default function TeaSet() {
-You can make this component pure by passing a prop instead of modifying a preexisting variable:
+Anda dapat membuat komponen ini menjadi murni dengan mengoper sebuah *prop* daripada memodifikasi variabel yang sudah ada:
```js
function Cup({ guest }) {
- return Tea cup for guest #{guest}
;
+ return Cangkir teh untuk tamu #{guest}
;
}
export default function TeaSet() {
@@ -519,12 +519,12 @@ export default function TeaSet() {
-Read **[Keeping Components Pure](/learn/keeping-components-pure)** to learn how to write components as pure, predictable functions.
+Baca **[Menjaga Komponen Tetap Murni](/learn/keeping-components-pure)** untuk mempelajari cara menulis komponen sebagai fungsi yang murni dan dapat diprediksi.
-## What's next? {/*whats-next*/}
+## Apa selanjutnya? {/*whats-next*/}
-Head over to [Your First Component](/learn/your-first-component) to start reading this chapter page by page!
+Lanjut ke [Komponen Pertama Anda](/learn/your-first-component) untuk mulai membaca halaman bab ini dari awal!
-Or, if you're already familiar with these topics, why not read about [Adding Interactivity](/learn/adding-interactivity)?
+Atau, jika Anda sudah familiar dengan topik ini, mengapa tidak membaca tentang [Menambahkan Interaktivitas](/learn/adding-interactivity)?
diff --git a/src/sidebarLearn.json b/src/sidebarLearn.json
index 89d5cffca..c36f3373c 100644
--- a/src/sidebarLearn.json
+++ b/src/sidebarLearn.json
@@ -186,7 +186,7 @@
},
{
"title": "Removing Effect Dependencies",
- "path": "/learn/removing-effect-dependencies"
+ "path": "/learn/removing-effect-dependencies"
},
{
"title": "Reusing Logic with Custom Hooks",