Skip to content

Commit 7c9c91b

Browse files
committed
docs: translate reusing logic [1%]
1 parent 2fc727b commit 7c9c91b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/content/learn/reusing-logic-with-custom-hooks.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
---
2-
title: 'Reusing Logic with Custom Hooks'
2+
title: 'Özel Hooklar ile Mantığı Tekrar Kullanma'
33
---
44

55
<Intro>
66

7-
React comes with several built-in Hooks like `useState`, `useContext`, and `useEffect`. Sometimes, you'll wish that there was a Hook for some more specific purpose: for example, to fetch data, to keep track of whether the user is online, or to connect to a chat room. You might not find these Hooks in React, but you can create your own Hooks for your application's needs.
7+
React, `useState`, `useContext`, ve `useEffect` gibi birkaç yerleşik Hook ile birlikte gelir. Bazen, bazı daha spesifik amaçlar için bir Hook olmasını isteyeceksiniz: örneğin, veri çekmek için, kullanıcının çevrimiçi olup olmadığını takip etmek için veya bir sohbet odasına bağlanmak için. Bu Hook'ları React'te bulamayabilirsiniz, ancak uygulamanızın ihtiyaçları için kendi Hook'larınızı oluşturabilirsiniz.
88

99
</Intro>
1010

1111
<YouWillLearn>
1212

13-
- What custom Hooks are, and how to write your own
14-
- How to reuse logic between components
15-
- How to name and structure your custom Hooks
16-
- When and why to extract custom Hooks
13+
- Özel Hook'ların ne olduğunu ve kendi özel Hook'larınızı nasıl yazacağınızı
14+
- Bileşenler arasında mantığı nasıl yeniden kullanacağınızı
15+
- Özel Hook'larınızı nasıl adlandıracağınızı ve yapılandıracağınızı
16+
- Özel Hook'ları ne zaman ve neden çıkaracağınızı
1717

1818
</YouWillLearn>
1919

20-
## Custom Hooks: Sharing logic between components {/*custom-hooks-sharing-logic-between-components*/}
20+
## Özel Hook'lar: Bileşenler arasında mantığı paylaşma {/*custom-hooks-sharing-logic-between-components*/}
2121

2222
Imagine you're developing an app that heavily relies on the network (as most apps do). You want to warn the user if their network connection has accidentally gone off while they were using your app. How would you go about it? It seems like you'll need two things in your component:
2323

0 commit comments

Comments
 (0)