Skip to content

Commit 63c3d57

Browse files
committed
docs: translate escape-hatches 15%
1 parent 56737e6 commit 63c3d57

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

src/content/learn/escape-hatches.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,19 @@ export default function Counter() {
5454

5555
</Sandpack>
5656

57-
A ref is like a secret pocket of your component that React doesn't track. For example, you can use refs to store [timeout IDs](https://developer.mozilla.org/en-US/docs/Web/API/setTimeout#return_value), [DOM elements](https://developer.mozilla.org/en-US/docs/Web/API/Element), and other objects that don't impact the component's rendering output.
57+
Bir ref, bileşeninize ait, React'in takip etmediği gizli bir cep gibidir. Örneğin, ref'leri [zaman aşımı ID'lerini](https://developer.mozilla.org/en-US/docs/Web/API/setTimeout#return_value), [DOM elemanlarını](https://developer.mozilla.org/en-US/docs/Web/API/Element) ve bileşenin render çıktısını etkilemeyen diğer nesneleri saklamak için kullanabilirsiniz.
5858

5959
<LearnMore path="/learn/referencing-values-with-refs">
6060

6161
Read **[Referencing Values with Refs](/learn/referencing-values-with-refs)** to learn how to use refs to remember information.
6262

63+
Ref'leri kullanarak nasıl bilgi saklayacağınızı öğrenmek için **[Ref'ler ile değerleri referans etme](/learn/referencing-values-with-refs)** bölümünü okuyun.
64+
6365
</LearnMore>
6466

65-
## Manipulating the DOM with refs {/*manipulating-the-dom-with-refs*/}
67+
## DOM'u ref'ler ile manipüle etmek {/*manipulating-the-dom-with-refs*/}
6668

67-
React automatically updates the DOM to match your render output, so your components won't often need to manipulate it. However, sometimes you might need access to the DOM elements managed by React—for example, to focus a node, scroll to it, or measure its size and position. There is no built-in way to do those things in React, so you will need a ref to the DOM node. For example, clicking the button will focus the input using a ref:
69+
React, render çıktınızla eşleşmesi için DOM'u otomatik olarak günceller, bunun sayesinde bileşenleriniz genellikle DOM'u manipüle etme ihtiyacı duymaz. Ancak, bazen React tarafından yönetilen DOM elemanlarına erişmeniz gerekebilir - örneğin, bir düğüme odaklanmak, ona scroll'lamak veya boyutunu ve konumunu ölçmek için. React'te bunları yapmak için gömülü bir yöntem yoktur, bu yüzden DOM düğümüne bir ref'e ihtiyacınız olacaktır. Örneğin, aşağıdaki örnekteki gibi, bir düğmeye tıklandığında bir ref kullanarak input'a odaklanabilirsiniz:
6870

6971
<Sandpack>
7072

@@ -82,7 +84,7 @@ export default function Form() {
8284
<>
8385
<input ref={inputRef} />
8486
<button onClick={handleClick}>
85-
Focus the input
87+
Girdiye odaklan
8688
</button>
8789
</>
8890
);
@@ -93,15 +95,16 @@ export default function Form() {
9395

9496
<LearnMore path="/learn/manipulating-the-dom-with-refs">
9597

96-
Read **[Manipulating the DOM with Refs](/learn/manipulating-the-dom-with-refs)** to learn how to access DOM elements managed by React.
98+
React tarafından yönetilen DOM elemanlarına nasıl erişeceğinizi öğrenmek için **[DOM'u ref'ler ile manipüle etme](/learn/manipulating-the-dom-with-refs)** bölümünü okuyun.
9799

98100
</LearnMore>
99101

100-
## Synchronizing with Effects {/*synchronizing-with-effects*/}
102+
## Efektler ile senkronize etme {/*synchronizing-with-effects*/}
103+
101104

102-
Some components need to synchronize with external systems. For example, you might want to control a non-React component based on the React state, set up a server connection, or send an analytics log when a component appears on the screen. Unlike event handlers, which let you handle particular events, *Effects* let you run some code after rendering. Use them to synchronize your component with a system outside of React.
105+
Bazı bileşenlerin dış sistemler ile senkronize olmazı gerekmektedir. Örneğin, bir sunucu bağlantısı kurmak için veya bir bileşen ekranda gözüktüğünde analitik logu göndermek için bir React-dışı bileşeni React state'ine göre kontrol etmek isteyebilirsiniz. *Efektler*, belirli olayları ele almanızı sağlayan olay yöneticilerinin aksine, sizin render'dan sonra bazı kodları çalıştırmanızı sağlar. Bileşeninizi React dışı bir sistem ile senkronize etmek için efektleri kullanın.
103106

104-
Press Play/Pause a few times and see how the video player stays synchronized to the `isPlaying` prop value:
107+
Başlat/Durdur butonuna birkaç kez basın ve video oynatıcının `isPlaying` prop değerine senkronize kaldığını görün:
105108

106109
<Sandpack>
107110

@@ -127,7 +130,7 @@ export default function App() {
127130
return (
128131
<>
129132
<button onClick={() => setIsPlaying(!isPlaying)}>
130-
{isPlaying ? 'Pause' : 'Play'}
133+
{isPlaying ? 'Durdur' : 'Başlat'}
131134
</button>
132135
<VideoPlayer
133136
isPlaying={isPlaying}

0 commit comments

Comments
 (0)