From 58e05e25c60d3eb46b7d245c5a0955ac79210f29 Mon Sep 17 00:00:00 2001 From: Abid Ra Date: Fri, 28 Apr 2023 11:20:30 +0700 Subject: [PATCH 01/11] refactor(input.md): init translate from english to indonesia --- .../reference/react-dom/components/input.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/content/reference/react-dom/components/input.md b/src/content/reference/react-dom/components/input.md index 06010d301..5874ac139 100644 --- a/src/content/reference/react-dom/components/input.md +++ b/src/content/reference/react-dom/components/input.md @@ -4,7 +4,7 @@ title: "" -The [built-in browser `` component](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input) lets you render different kinds of form inputs. +Komponen [bawaan browser ``](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input) memungkinkan Anda merender berbagai jenis input form. ```js @@ -16,26 +16,26 @@ The [built-in browser `` component](https://developer.mozilla.org/en-US/d --- -## Reference {/*reference*/} +## Referensi {/*reference*/} ### `` {/*input*/} -To display an input, render the [built-in browser ``](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input) component. +Untuk menampilkan sebuah input, render komponen [bawaan browser ``](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input). ```js ``` -[See more examples below.](#usage) +[Lihat lebih banyak contoh di bawah ini.](#usage) #### Props {/*props*/} -`` supports all [common element props.](/reference/react-dom/components/common#props) +`` mendukung semua [element props yang umum.](/reference/react-dom/components/common#props) -You can [make an input controlled](#controlling-an-input-with-a-state-variable) by passing one of these props: +Anda dapat [membuat sebuah input yang terkontrol](#controlling-an-input-with-a-state-variable) melalui satu dari beberapa props berikut: -* [`checked`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement#checked): A boolean. For a checkbox input or a radio button, controls whether it is selected. -* [`value`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement#value): A string. For a text input, controls its text. (For a radio button, specifies its form data.) +* [`checked`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement#checked): Sebuah boolean. Untuk input checkbox atau tombol radio, mengontrol apakah itu dipilih. +* [`value`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement#value): Sebuah string. Untuk sebuah text input, mengontrol text. (Untuk tombol radio, menentukan data form.) When you pass either of them, you must also pass an `onChange` handler that updates the passed value. From e00a73557af24b355b35095c58e15e6d131539ab Mon Sep 17 00:00:00 2001 From: Abid Ra Date: Sun, 30 Apr 2023 16:35:42 +0700 Subject: [PATCH 02/11] docs: finish reference pages --- .../reference/react-dom/components/input.md | 130 +++++++++--------- 1 file changed, 65 insertions(+), 65 deletions(-) diff --git a/src/content/reference/react-dom/components/input.md b/src/content/reference/react-dom/components/input.md index 5874ac139..ca3f888d3 100644 --- a/src/content/reference/react-dom/components/input.md +++ b/src/content/reference/react-dom/components/input.md @@ -20,7 +20,7 @@ Komponen [bawaan browser ``](https://developer.mozilla.org/en-US/docs/Web ### `` {/*input*/} -Untuk menampilkan sebuah input, render komponen [bawaan browser ``](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input). +Untuk menampilkan sebuah masukan, render komponen [bawaan browser ``](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input). ```js @@ -32,72 +32,72 @@ Untuk menampilkan sebuah input, render komponen [bawaan browser ``](https `` mendukung semua [element props yang umum.](/reference/react-dom/components/common#props) -Anda dapat [membuat sebuah input yang terkontrol](#controlling-an-input-with-a-state-variable) melalui satu dari beberapa props berikut: - -* [`checked`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement#checked): Sebuah boolean. Untuk input checkbox atau tombol radio, mengontrol apakah itu dipilih. -* [`value`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement#value): Sebuah string. Untuk sebuah text input, mengontrol text. (Untuk tombol radio, menentukan data form.) - -When you pass either of them, you must also pass an `onChange` handler that updates the passed value. - -These `` props are only relevant for uncontrolled inputs: - -* [`defaultChecked`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement#defaultChecked): A boolean. Specifies [the initial value](#providing-an-initial-value-for-an-input) for `type="checkbox"` and `type="radio"` inputs. -* [`defaultValue`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement#defaultValue): A string. Specifies [the initial value](#providing-an-initial-value-for-an-input) for a text input. - -These `` props are relevant both for uncontrolled and controlled inputs: - -* [`accept`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#accept): A string. Specifies which filetypes are accepted by a `type="file"` input. -* [`alt`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#alt): A string. Specifies the alternative image text for a `type="image"` input. -* [`capture`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#capture): A string. Specifies the media (microphone, video, or camera) captured by a `type="file"` input. -* [`autoComplete`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#autocomplete): A string. Specifies one of the possible [autocomplete behaviors.](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#values) -* [`autoFocus`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#autofocus): A boolean. If `true`, React will focus the element on mount. -* [`dirname`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#dirname): A string. Specifies the form field name for the element's directionality. -* [`disabled`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#disabled): A boolean. If `true`, the input will not be interactive and will appear dimmed. -* `children`: `` does not accept children. -* [`form`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#form): A string. Specifies the `id` of the `
` this input belongs to. If omitted, it's the closest parent form. -* [`formAction`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#formaction): A string. Overrides the parent `` for `type="submit"` and `type="image"`. -* [`formEnctype`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#formenctype): A string. Overrides the parent `` for `type="submit"` and `type="image"`. -* [`formMethod`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#formmethod): A string. Overrides the parent `` for `type="submit"` and `type="image"`. -* [`formNoValidate`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#formnovalidate): A string. Overrides the parent `` for `type="submit"` and `type="image"`. -* [`formTarget`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#formtarget): A string. Overrides the parent `` for `type="submit"` and `type="image"`. -* [`height`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#height): A string. Specifies the image height for `type="image"`. -* [`list`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#list): A string. Specifies the `id` of the `` with the autocomplete options. -* [`max`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#max): A number. Specifies the maximum value of numerical and datetime inputs. -* [`maxLength`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength): A number. Specifies the maximum length of text and other inputs. -* [`min`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#min): A number. Specifies the minimum value of numerical and datetime inputs. -* [`minLength`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength): A number. Specifies the minimum length of text and other inputs. -* [`multiple`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#multiple): A boolean. Specifies whether multiple values are allowed for `` ini hanya relevan untuk input yang tidak dikontrol: + +* [`defaultChecked`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement#defaultChecked): Sebuah boolean. Menentukan [nilai awal](#providing-an-initial-value-for-an-input) dari masukan `type="checkbox"` dan `type="radio"`. +* [`defaultValue`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement#defaultValue): Sebuah string. Menentukan [nilai awal](#providing-an-initial-value-for-an-input) dari masukan sebuah text. + +Props `` ini relevan untuk input tidak terkontrol dan input terkontrol: + +* [`accept`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#accept): Sebuah string. Menentukan tipe file mana yang diterima oleh masukan `type="file"`. +* [`alt`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#alt): Sebuah string. Menentukan teks gambar alternatif untuk masuk `type="image"`. +* [`capture`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#capture): Sebuah string. Menentukan media (mikrofon, video, atau kamera) yang ditangkap oleh masukan `type="file"`. +* [`autoComplete`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#autocomplete): Sebuah string. Menentukan salah satu kemungkinan [perilaku autocomplete.](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#values) +* [`autoFocus`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#autofocus): Sebuah boolean. Jika `true`, React akan memfokuskan elemen saat pasang. +* [`dirname`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#dirname): Sebuah string. Menentukan nama bidang form untuk arah elemen. +* [`disabled`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#disabled): Sebuah boolean. Jika `true`, masukan tidak akan interaktif dan akan tampak redup. +* `children`: `` tidak menerima children. +* [`form`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#form): Sebuah string. Menentukan `id` dari `` milik masukan ini. Jika dihilangkan, menggunakan parent form terdekat. +* [`formAction`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#formaction): Sebuah string. Menimpa parent `` dari `type="submit"` dan `type="image"`. +* [`formEnctype`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#formenctype): Sebuah string. Menimpa parent `` dari `type="submit"` dan `type="image"`. +* [`formMethod`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#formmethod): Sebuah string. Menimpa parent `` dari `type="submit"` dan `type="image"`. +* [`formNoValidate`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#formnovalidate): Sebuah string. Menimpa parent `` dari `type="submit"` dan `type="image"`. +* [`formTarget`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#formtarget): Sebuah string. Menimpa parent `` dari `type="submit"` dan `type="image"`. +* [`height`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#height): Sebuah string. Menentukan tinggi dari gambar untuk `type="image"`. +* [`list`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#list): Sebuah string. Menentukan `id` dari `` dengan opsi autocomplete. +* [`max`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#max): Sebuah angka. Menentukan nilai maksimum masukan numerik dan waktu. +* [`maxLength`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength): Sebuah angka. Menentukan panjang maksimum teks dan masukan lainnya. +* [`min`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#min): Sebuah angka. Menentukan nilai minimum masukan numerik dan waktu. +* [`minLength`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength): Sebuah angka. Menentukan panjang minimum teks dan masukan lainnya. +* [`multiple`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#multiple): Sebuah boolean. Menentukan apakah beberapa nilai diperbolehkan untuk `` changes. React extends the `onSelect` event to also fire for empty selection and on edits (which may affect the selection). -* `onSelectCapture`: A version of `onSelect` that fires in the [capture phase.](/learn/responding-to-events#capture-phase-events) -* [`pattern`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#pattern): A string. Specifies the pattern that the `value` must match. -* [`placeholder`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#placeholder): A string. Displayed in a dimmed color when the input value is empty. -* [`readOnly`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#readonly): A boolean. If `true`, the input is not editable by the user. -* [`required`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#required): A boolean. If `true`, the value must be provided for the form to submit. -* [`size`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#size): A number. Similar to setting width, but the unit depends on the control. -* [`src`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#src): A string. Specifies the image source for a `type="image"` input. -* [`step`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#step): A positive number or an `'any'` string. Specifies the distance between valid values. -* [`type`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#type): A string. One of the [input types.](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types) -* [`width`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#width): A string. Specifies the image width for a `type="image"` input. - -#### Caveats {/*caveats*/} - -- Checkboxes need `checked` (or `defaultChecked`), not `value` (or `defaultValue`). -- If a text input receives a string `value` prop, it will be [treated as controlled.](#controlling-an-input-with-a-state-variable) -- If a checkbox or a radio button receives a boolean `checked` prop, it will be [treated as controlled.](#controlling-an-input-with-a-state-variable) -- An input can't be both controlled and uncontrolled at the same time. -- An input cannot switch between being controlled or uncontrolled over its lifetime. -- Every controlled input needs an `onChange` event handler that synchronously updates its backing value. +* [`onInvalid`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/invalid_event): Sebuah fungsi [`Event` handler](/reference/react-dom/components/common#event-handler). Aktif jika sebuah masukan gagal divalidasi ketika pengiriman form. Tidak seperti event `invalid` bawaan, React `onInvalid` berbentuk event bubbles. +* `onInvalidCapture`: Sebuah versi dari `onInvalid` yang aktif didalam [fase menangkap.](/learn/responding-to-events#capture-phase-events) +* [`onSelect`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/select_event): Sebuah fungsi [`Event` handler](/reference/react-dom/components/common#event-handler). Aktif setelah pemilihan di dalam `` berubah. React memperluas event `onSelect` untuk juga mengaktifkan pemilihan kosong dan pada pengeditan (yang dapat memengaruhi pemilihan). +* `onSelectCapture`: Sebuah versi dari `onSelect` yang aktif ketika [fase menangkap.](/learn/responding-to-events#capture-phase-events) +* [`pattern`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#pattern): Sebuah string. Menentukan pola yang harus cocok dengan `value`. +* [`placeholder`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#placeholder): Sebuah string. Ditampilkan dalam warna redup saat nilai input kosong. +* [`readOnly`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#readonly): Sebuah boolean. Jika `true`, masukan tidak dapat diedit oleh pengguna. +* [`required`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#required): Sebuah boolean. Jika `true`, nilai harus diberikan untuk form yang akan dikirim. +* [`size`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#size): Sebuah angka. Mirip dengan pengaturan lebar, tetapi unit tergantung pada kontrol. +* [`src`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#src): Sebuah string. Menentukan sumber gambar untuk masukan `type="image"`. +* [`step`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#step): Angka positif atau string `'any'`. Menentukan jarak antara nilai yang valid. +* [`type`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#type): Sebuah string. Satu dari [tipe masukan.](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types) +* [`width`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#width): Sebuah string. Menentukan lebar gambar untuk masukan `type="image"`. + +#### Peringatan {/*caveats*/} + +- Checkbox harus `checked` (atau `defaultChecked`), bukan `value` (atau `defaultValue`). +- Jika sebuah masukan text menerima sebuah prop string `value`, itu akan [diperlakukan sebagai terkontrol.](#controlling-an-input-with-a-state-variable) +- Jika sebuah checkbox atau sebuah tombol radio menerima prop boolean `checked`, itu akan [diperlakukan sebagai terkontrol.](#controlling-an-input-with-a-state-variable) +- Masukan tidak dapat dikontrol dan tidak dikontrol secara bersamaan. +- Masukan tidak dapat beralih antara dikontrol atau tidak dikontrol selama masa pakainya. +- Setiap masukan yang dikontrol membutuhkan event handler `onChange` yang secara sinkron memperbarui nilai pendukungnya. --- -## Usage {/*usage*/} +## Penggunaan {/*usage*/} ### Displaying inputs of different types {/*displaying-inputs-of-different-types*/} @@ -590,6 +590,6 @@ If you provide a `value` to the component, it must remain a string throughout it You cannot pass `value={undefined}` first and later pass `value="some string"` because React won't know whether you want the component to be uncontrolled or controlled. A controlled component should always receive a string `value`, not `null` or `undefined`. -If your `value` is coming from an API or a state variable, it might be initialized to `null` or `undefined`. In that case, either set it to an empty string (`''`) initially, or pass `value={someValue ?? ''}` to ensure `value` is a string. +If your `value` is coming from an API or a state variable, it might be initialized to `null` or `undefined`. In that case, either set it to an empty string (`''`) initially, or pass `value={someValue ?? ''}` to ensure `value` is Sebuah string. -Similarly, if you pass `checked` to a checkbox, ensure it's always a boolean. +Similarly, if you pass `checked` to a checkbox, ensure it's always Sebuah boolean. From d57c7825c5723138642a865e02281fa4fde49b4f Mon Sep 17 00:00:00 2001 From: Abid Ra Date: Sun, 30 Apr 2023 18:40:32 +0700 Subject: [PATCH 03/11] docs: finish translate react dom input component page --- .../reference/react-dom/components/input.md | 192 +++++++++--------- 1 file changed, 96 insertions(+), 96 deletions(-) diff --git a/src/content/reference/react-dom/components/input.md b/src/content/reference/react-dom/components/input.md index ca3f888d3..6edf52237 100644 --- a/src/content/reference/react-dom/components/input.md +++ b/src/content/reference/react-dom/components/input.md @@ -4,7 +4,7 @@ title: "" -Komponen [bawaan browser ``](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input) memungkinkan Anda merender berbagai jenis input form. +Komponen [bawaan browser ``](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input) memungkinkan Anda merender berbagai jenis masukan form. ```js @@ -35,16 +35,16 @@ Untuk menampilkan sebuah masukan, render komponen [bawaan browser ``](htt Anda dapat [membuat sebuah masukan yang terkontrol](#controlling-an-input-with-a-state-variable) melalui satu dari beberapa props berikut: * [`checked`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement#checked): Sebuah boolean. Untuk masukan checkbox atau tombol radio, mengontrol apakah itu dipilih. -* [`value`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement#value): Sebuah string. Untuk sebuah masukan text, mengontrol text. (Untuk tombol radio, menentukan data form.) +* [`value`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement#value): Sebuah string. Untuk sebuah masukan teks, mengontrol teks. (Untuk tombol radio, menentukan data form.) Ketika Anda mengoper salah satu dari mereka, Anda juga harus mengoper sebuah `onChange` handler yang memperbarui nilai yang dioper. -Props `` ini hanya relevan untuk input yang tidak dikontrol: +Props `` ini hanya relevan untuk masukan yang tidak dikontrol: * [`defaultChecked`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement#defaultChecked): Sebuah boolean. Menentukan [nilai awal](#providing-an-initial-value-for-an-input) dari masukan `type="checkbox"` dan `type="radio"`. -* [`defaultValue`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement#defaultValue): Sebuah string. Menentukan [nilai awal](#providing-an-initial-value-for-an-input) dari masukan sebuah text. +* [`defaultValue`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement#defaultValue): Sebuah string. Menentukan [nilai awal](#providing-an-initial-value-for-an-input) dari masukan sebuah teks. -Props `` ini relevan untuk input tidak terkontrol dan input terkontrol: +Props `` ini relevan untuk masukan tidak terkontrol dan masukan terkontrol: * [`accept`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#accept): Sebuah string. Menentukan tipe file mana yang diterima oleh masukan `type="file"`. * [`alt`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#alt): Sebuah string. Menentukan teks gambar alternatif untuk masuk `type="image"`. @@ -89,7 +89,7 @@ Props `` ini relevan untuk input tidak terkontrol dan input terkontrol: #### Peringatan {/*caveats*/} - Checkbox harus `checked` (atau `defaultChecked`), bukan `value` (atau `defaultValue`). -- Jika sebuah masukan text menerima sebuah prop string `value`, itu akan [diperlakukan sebagai terkontrol.](#controlling-an-input-with-a-state-variable) +- Jika sebuah masukan teks menerima sebuah prop string `value`, itu akan [diperlakukan sebagai terkontrol.](#controlling-an-input-with-a-state-variable) - Jika sebuah checkbox atau sebuah tombol radio menerima prop boolean `checked`, itu akan [diperlakukan sebagai terkontrol.](#controlling-an-input-with-a-state-variable) - Masukan tidak dapat dikontrol dan tidak dikontrol secara bersamaan. - Masukan tidak dapat beralih antara dikontrol atau tidak dikontrol selama masa pakainya. @@ -99,9 +99,9 @@ Props `` ini relevan untuk input tidak terkontrol dan input terkontrol: ## Penggunaan {/*usage*/} -### Displaying inputs of different types {/*displaying-inputs-of-different-types*/} +### Menampilkan masukan dari berbagai jenis {/*displaying-inputs-of-different-types*/} -To display an input, render an `` component. By default, it will be a text input. You can pass `type="checkbox"` for a checkbox, `type="radio"` for a radio button, [or one of the other input types.](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types) +Untuk menampilkan masukan, render sebuah komponen ``. Secara default, itu akan menjadi masukan teks. Anda dapat mengopen `type="checkbox"` untuk sebuah checkbox, `type="radio"` untuk sebuah tombol radio, [atau salah satu dari jenis masukan lainnya.](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types) @@ -110,7 +110,7 @@ export default function MyForm() { return ( <>