Skip to content

Commit d758ff5

Browse files
authored
Merge pull request #430 from agmmnn/main
translate `React DOM Components`
2 parents 7e38c64 + cdb5633 commit d758ff5

File tree

1 file changed

+23
-25
lines changed
  • src/content/reference/react-dom/components

1 file changed

+23
-25
lines changed

src/content/reference/react-dom/components/index.md

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
---
2-
title: "React DOM Components"
2+
title: "React DOM Bileşenleri"
33
---
44

55
<Intro>
66

7-
React supports all of the browser built-in [HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Element) and [SVG](https://developer.mozilla.org/en-US/docs/Web/SVG/Element) components.
7+
React tarayıcının tüm yerleşik [HTML](https://developer.mozilla.org/en-US/docs/Web/HTML/Element) ve [SVG](https://developer.mozilla.org/en-US/docs/Web/SVG/Element) bileşenlerini destekler.
88

99
</Intro>
1010

1111
---
1212

13-
## Common components {/*common-components*/}
13+
## Ortak Bileşenler {/*common-components*/}
1414

15-
All of the built-in browser components support some props and events.
15+
Tüm yerleşik tarayıcı bileşenleri bazı prop'ları ve event'leri destekler.
1616

17-
* [Common components (e.g. `<div>`)](/reference/react-dom/components/common)
17+
* [Ortak bileşenler (örn. `<div>`)](/reference/react-dom/components/common)
1818

19-
This includes React-specific props like `ref` and `dangerouslySetInnerHTML`.
19+
Bu `ref` ve `dangerouslySetInnerHTML` gibi React'e özgü prop'ları içerir.
2020

2121
---
2222

23-
## Form components {/*form-components*/}
23+
## Form bileşenleri {/*form-components*/}
2424

25-
These built-in browser components accept user input:
25+
Aşağıdaki yerleşik tarayıcı bileşenleri kullanıcı girdilerini alır:
2626

2727
* [`<input>`](/reference/react-dom/components/input)
2828
* [`<select>`](/reference/react-dom/components/select)
2929
* [`<textarea>`](/reference/react-dom/components/textarea)
3030

31-
They are special in React because passing the `value` prop to them makes them *[controlled.](/reference/react-dom/components/input#controlling-an-input-with-a-state-variable)*
31+
React'te bu elemanlar kendilerine `value` prop'u iletildiğinde *[kontrol edilebilir](/reference/react-dom/components/input#controlling-an-input-with-a-state-variable)* hale geldikleri için özel bir yere sahiptirler.
3232

3333
---
3434

35-
## All HTML components {/*all-html-components*/}
35+
## Tüm HTML bileşenleri {/*all-html-components*/}
3636

37-
React supports all built-in browser HTML components. This includes:
37+
React tüm yerleşik tarayıcı HTML bileşenlerini destekler. Bu şunları içerir:
3838

3939
* [`<aside>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/aside)
4040
* [`<audio>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio)
@@ -140,38 +140,38 @@ React supports all built-in browser HTML components. This includes:
140140

141141
<Note>
142142

143-
Similar to the [DOM standard,](https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model) React uses a `camelCase` convention for prop names. For example, you'll write `tabIndex` instead of `tabindex`. You can convert existing HTML to JSX with an [online converter.](https://transform.tools/html-to-jsx)
143+
[DOM standardıyla](https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model) benzer şekilde, React prop isimleri için `camelCase` kuralını kullanır. Örneğin `tabindex` yerine `tabIndex` yazacaksınız. Mevcut HTML'inizi JSX'e dönüştürmek için bir [çevrimiçi dönüştürücü](https://transform.tools/html-to-jsx) kullanabilirsiniz.
144144

145145
</Note>
146146

147147
---
148148

149-
### Custom HTML elements {/*custom-html-elements*/}
149+
### Özel HTML elemanları {/*custom-html-elements*/}
150150

151-
If you render a tag with a dash, like `<my-element>`, React will assume you want to render a [custom HTML element.](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements) In React, rendering custom elements works differently from rendering built-in browser tags:
151+
Eğer `<my-element>` gibi tire içeren bir etiket oluşturursanız, React bir [özel HTML elemanı](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements) oluşturmak istediğinizi varsayacaktır. React'te özel elemanların render edilmesi, yerleşik tarayıcı etiketlerinin render edilmesinden daha farklı şekilde çalışır:
152152

153-
- All custom element props are serialized to strings and are always set using attributes.
154-
- Custom elements accept `class` rather than `className`, and `for` rather than `htmlFor`.
153+
- Tüm özel eleman prop'ları string olarak serileştirilir ve her zaman öznitelikler kullanılarak ayarlanır.
154+
- Özel elemanlar `class` yerine `className`, `for` yerine `htmlFor` kabul eder.
155155

156-
If you render a built-in browser HTML element with an [`is`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/is) attribute, it will also be treated as a custom element.
156+
Yerleşik bir tarayıcı HTML elemanını [`is`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/is) özniteliğiyle oluşturursanız, bu eleman da özel bir eleman olarak ele alınacaktır.
157157

158158
<Note>
159159

160-
[A future version of React will include more comprehensive support for custom elements.](https://github.com/facebook/react/issues/11347#issuecomment-1122275286)
160+
[React'in gelecekteki bir sürümü daha kapsamlı özel eleman desteği içerecektir.](https://github.com/facebook/react/issues/11347#issuecomment-1122275286)
161161

162-
You can try it by upgrading React packages to the most recent experimental version:
162+
En son deneysel sürüme React paketlerini yükselterek deneyebilirsiniz:
163163

164164
- `react@experimental`
165165
- `react-dom@experimental`
166166

167-
Experimental versions of React may contain bugs. Don't use them in production.
167+
React'in deneysel sürümleri hatalar içerebilir. Bunları canlı ortamda kullanmayın.
168168

169169
</Note>
170170
---
171171

172-
## All SVG components {/*all-svg-components*/}
172+
## Tüm SVG bileşenleri {/*all-svg-components*/}
173173

174-
React supports all built-in browser SVG components. This includes:
174+
React, tüm yerleşik tarayıcı SVG bileşenlerini destekler. Bu şunları içerir:
175175

176176
* [`<a>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/a)
177177
* [`<animate>`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/animate)
@@ -242,9 +242,7 @@ React supports all built-in browser SVG components. This includes:
242242

243243
<Note>
244244

245-
Similar to the [DOM standard,](https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model) React uses a `camelCase` convention for prop names. For example, you'll write `tabIndex` instead of `tabindex`. You can convert existing SVG to JSX with an [online converter.](https://transform.tools/)
246-
247-
Namespaced attributes also have to be written without the colon:
245+
[DOM standardına](https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model) benzer şekilde, React prop adları için `camelCase` kuralını kullanır. Örneğin, `tabindex` yerine `tabIndex` yazacaksınız. Mevcut SVG'nizi JSX'e dönüştürmek için bir [çevrimiçi dönüştürücü](https://transform.tools/) kullanabilirsiniz.
248246

249247
* `xlink:actuate` becomes `xlinkActuate`.
250248
* `xlink:arcrole` becomes `xlinkArcrole`.

0 commit comments

Comments
 (0)