Skip to content

Commit 8b57334

Browse files
translate paragraphs in useRef
1 parent fd12240 commit 8b57334

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/reference/react/useRef.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ button { display: block; margin-bottom: 20px; }
449449

450450
#### Kendi bileşeninize bir ref'i açığa çıkarma {/*exposing-a-ref-to-your-own-component*/}
451451
452-
Sometimes, you may want to let the parent component manipulate the DOM inside of your component. For example, maybe you're writing a `MyInput` component, but you want the parent to be able to focus the input (which the parent has no access to). You can create a `ref` in the parent and pass the `ref` as prop to the child component. Read a [detailed walkthrough](/learn/manipulating-the-dom-with-refs#accessing-another-components-dom-nodes) here.
452+
Bazen, ebeveyn bileşenin, bileşeninizin içindeki DOM'u manipüle etmesine izin vermek isteyebilirsiniz. Örneğin, belki bir `MyInput` bileşeni yazıyorsunuz, ancak ebeveynin input'a odaklanabilmesini (ebeveynin buna erişimi yoktur) istiyorsunuz. Ebeveyn içinde bir `ref` oluşturabilir ve `ref`'i prop olarak çocuk bileşene iletebilirsiniz. [Detaylı bir rehber için buraya bakın.](/learn/manipulating-the-dom-with-refs#accessing-another-components-dom-nodes)
453453

454454
<Sandpack>
455455

@@ -556,7 +556,7 @@ Konsolda bir hata alabilirsiniz:
556556
557557
<ConsoleBlock level="error">
558558
559-
TypeError: Cannot read properties of null
559+
TypeError: Null'un özellikleri okunamıyor
560560

561561
</ConsoleBlock>
562562

@@ -575,7 +575,7 @@ export default function MyInput({ value, onChange }) {
575575
}
576576
```
577577
578-
And then add `ref` to the list of props your component accepts and pass `ref` as a prop to the relevent child [built-in component](/reference/react-dom/components/common) like this:
578+
Ve ardından `ref`'i, bileşeninizin kabul ettiği props listesine ekleyin ve `ref`'i ilgili [yerleşik bileşene](/reference/react-dom/components/common) prop olarak iletin, şöyle:
579579
580580
```js {1,6}
581581
function MyInput({ value, onChange, ref }) {

0 commit comments

Comments
 (0)