Skip to content

Commit 91a8492

Browse files
committed
rules-of-hooks
1 parent b96d21a commit 91a8492

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
@@ -42,12 +42,12 @@ Hook'ları (`use` ile başlayan fonksiyonlar) başka herhangi bir durumda çağ
4242
* 🔴 Hook'ları `useMemo`, `useReducer` veya `useEffect`'e geçirilen fonksiyonların içinde çağırmayın.
4343
* 🔴 Hook'ları `try`/`catch`/`finally` blokları içinde çağırmayın.
4444

45-
If you break these rules, you might see this error.
45+
Bu kuralları ihlal ederseniz, bu hatayı görebilirsiniz.
4646

4747
```js{3-4,11-12,20-21}
4848
function Bad({ cond }) {
4949
if (cond) {
50-
// 🔴 Bad: inside a condition (to fix, move it outside!)
50+
// 🔴 Kötü: bir durumun içinde (düzeltmek için, dışarı taşıyın!)
5151
const theme = useContext(ThemeContext);
5252
}
5353
// ...

0 commit comments

Comments
 (0)