Skip to content

Commit 8e70c53

Browse files
committed
rules-of-hooks
1 parent 57f3865 commit 8e70c53

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/content/reference/rules/rules-of-hooks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ Hook'lar JavaScript fonksiyonları kullanılarak tanımlanır, ancak nerede ça
1414

1515
İsimleri `use` ile başlayan fonksiyonlar React'te [*Hooks*](/reference/react) olarak adlandırılır.
1616

17-
**Don’t call Hooks inside loops, conditions, nested functions, or `try`/`catch`/`finally` blocks.** Instead, always use Hooks at the top level of your React function, before any early returns. You can only call Hooks while React is rendering a function component:
17+
**Hook'ları döngüler, koşullar, iç içe fonksiyonlar veya `try`/`catch`/`finally` blokları içinde çağırmayın.** Bunun yerine, Hook'ları her zaman React fonksiyonunuzun en üst seviyesinde, herhangi bir erken dönüşten önce kullanın. Hook'ları yalnızca React bir fonksiyon bileşenini işlerken çağırabilirsiniz:
1818

19-
*Call them at the top level in the body of a [function component](/learn/your-first-component).
19+
*Bunları bir [fonksiyon bileşeninin](/learn/your-first-component) gövdesinde en üst seviyede çağırın.
2020
* ✅ Call them at the top level in the body of a [custom Hook](/learn/reusing-logic-with-custom-hooks).
2121

2222
```js{2-3,8-9}

0 commit comments

Comments
 (0)