Skip to content

Commit 56737e6

Browse files
committed
Merge branch 'escape-hatches' of https://github.com/andyanday33/tr.react.dev into escape-hatches
2 parents 2fc727b + 01d7d6a commit 56737e6

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/content/learn/escape-hatches.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
---
2-
title: Escape Hatches
2+
title: Kaçış Yolları
33
---
44

55
<Intro>
66

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.
88

99
</Intro>
1010

1111
<YouWillLearn isChapter={true}>
1212

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)
2121

2222
</YouWillLearn>
2323

24-
## Referencing values with refs {/*referencing-values-with-refs*/}
24+
## Ref'ler ile değerleri referans etmek {/*referencing-values-with-refs*/}
2525

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:
2727

2828
```js
2929
const ref = useRef(0);
3030
```
3131

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.
3333

3434
<Sandpack>
3535

@@ -41,12 +41,12 @@ export default function Counter() {
4141

4242
function handleClick() {
4343
ref.current = ref.current + 1;
44-
alert('You clicked ' + ref.current + ' times!');
44+
alert(ref.current + ' kez tıkladınız!');
4545
}
4646

4747
return (
4848
<button onClick={handleClick}>
49-
Click me!
49+
Bana tıkla!
5050
</button>
5151
);
5252
}

0 commit comments

Comments
 (0)