You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/learn/escape-hatches.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,35 +1,35 @@
1
1
---
2
-
title: Escape Hatches
2
+
title: Kaçış Yolları
3
3
---
4
4
5
5
<Intro>
6
6
7
-
Some of your components may need to control and synchronize with systems outside of React. For example, you might need to focus an input using the browser API, play and pause a video player implemented without React, or connect and listen to messages from a remote server. In this chapter, you'll learn the escape hatches that let you "step outside" React and connect to external systems. Most of your application logic and data flow should not rely on these features.
7
+
Bazı bileşenleriniz, React'in dışarısında bulunan bileşenleri kontrol etmek ya da onlarla senkronize olmaya ihtiyaç duyabilir. Örneğin, tarayıcı API'sini kullanarak bir girdi alanına odaklanmanız, React olmadan yazılmış bir video oynatıcıyı durdurup başlatmanız ya da uzak bir sunucuya bağlanıp mesajları dinlemeniz gerekebilir. Bu bölümde, dış sistemlere bağlanmak için React'in "dışına çıkmanızı" sağlayacak kaçış yollarını öğreneceksiniz. Uygulama mantığınızın ve veri akışınızın çoğu bu özelliklere bağlı olmamalıdır.
8
8
9
9
</Intro>
10
10
11
11
<YouWillLearnisChapter={true}>
12
12
13
-
*[How to "remember" information without re-rendering](/learn/referencing-values-with-refs)
14
-
*[How to access DOM elements managed by React](/learn/manipulating-the-dom-with-refs)
15
-
*[How to synchronize components with external systems](/learn/synchronizing-with-effects)
16
-
*[How to remove unnecessary Effects from your components](/learn/you-might-not-need-an-effect)
17
-
*[How an Effect's lifecycle is different from a component's](/learn/lifecycle-of-reactive-effects)
18
-
*[How to prevent some values from re-triggering Effects](/learn/separating-events-from-effects)
19
-
*[How to make your Effect re-run less often](/learn/removing-effect-dependencies)
20
-
*[How to share logic between components](/learn/reusing-logic-with-custom-hooks)
13
+
*[Yeniden render etmeden bilgiyi nasıl "hatırlayacağınızı"](/learn/referencing-values-with-refs)
14
+
*[React tarafından yönetilen DOM elemanlarına nasıl ulaşacağınızı](/learn/manipulating-the-dom-with-refs)
15
+
*[Bileşenleri nasıl dış sistemlerle senkronize edeceğinizi](/learn/synchronizing-with-effects)
16
+
*[Bileşenlerinizden gereksiz Effect'leri nasıl kaldıracağınızı](/learn/you-might-not-need-an-effect)
17
+
*[Bir Effect'in yaşam döngüsünün bir bileşenin yaşam döngüsünden nasıl farklı olduğunu](/learn/lifecycle-of-reactive-effects)
18
+
*[Bazı değerlerin Effect'leri yeniden tetiklemesini nasıl engelleyeceğinizi](/learn/separating-events-from-effects)
19
+
*[Effect'inizin daha az sıklıkla yeniden çalışmasını nasıl sağlayabileceğinizi](/learn/removing-effect-dependencies)
20
+
*[Bileşenler arasında mantık paylaşımı nasıl yapacağınızı](/learn/reusing-logic-with-custom-hooks)
21
21
22
22
</YouWillLearn>
23
23
24
-
## Referencing values with refs {/*referencing-values-with-refs*/}
24
+
## Ref'ler ile değerleri referans etmek {/*referencing-values-with-refs*/}
25
25
26
-
When you want a component to "remember" some information, but you don't want that information to [trigger new renders](/learn/render-and-commit), you can use a *ref*:
26
+
Bileşeninizin bir bilgiyi "hatırlamasını" istediğinizde, ancak bu bilginin [yeni render'lar tetiklemesini](/learn/render-and-commit) istemediğinizde, bir *ref* kullanabilirsiniz:
27
27
28
28
```js
29
29
constref=useRef(0);
30
30
```
31
31
32
-
Like state, refs are retained by React between re-renders. However, setting state re-renders a component. Changing a ref does not! You can access the current value of that ref through the `ref.current`property.
32
+
State gibi, ref'ler de React tarafından yeniden render'lar arasında saklanır. Ancak, bir state'i değiştirmek bileşeni yeniden render eder. Bir ref'i değiştirmek etmez! Ref'in o anki değerine `ref.current`özelliği üzerinden erişebilirsiniz.
33
33
34
34
<Sandpack>
35
35
@@ -41,12 +41,12 @@ export default function Counter() {
0 commit comments