Skip to content

Commit a2917c6

Browse files
committed
docs(quick-start): creating and nesting components
1 parent abf706b commit a2917c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/content/learn/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ Selamat datang di dokumentasi React! Halaman ini akan memberikan Anda pengenalan
1919

2020
</YouWillLearn>
2121

22-
## Creating and nesting components {/*components*/}
22+
## Membuat dan menyarangkan (nesting) komponen {/*components*/}
2323

24-
React apps are made out of *components*. A component is a piece of the UI (user interface) that has its own logic and appearance. A component can be as small as a button, or as large as an entire page.
24+
Aplikasi React dibuat dari *komponen*. Komponen adalah bagian dari UI (*user interface*, antarmuka pengguna) yang memiliki logika dan tampilan tersendiri. Sebuah komponen dapat berukuran sekecil tombol, atau sebesar seluruh halaman.
2525

26-
React components are JavaScript functions that return markup:
26+
Komponen React adalah fungsi JavaScript yang mengembalikan *markup*:
2727

2828
```js
2929
function MyButton() {
3030
return (
31-
<button>I'm a button</button>
31+
<button>Saya adalah tombol</button>
3232
);
3333
}
3434
```

0 commit comments

Comments
 (0)