Skip to content

Commit 5fb942c

Browse files
committed
Rules of React page
1 parent b88c719 commit 5fb942c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/reference/rules/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ Kod tabanınızın React Kurallarına uymasına yardımcı olmak için React'in
4343

4444
---
4545

46-
## Rules of Hooks {/*rules-of-hooks*/}
46+
## Hook Kuralları {/*rules-of-hooks*/}
4747

48-
Hooks are defined using JavaScript functions, but they represent a special type of reusable UI logic with restrictions on where they can be called. You need to follow the [Rules of Hooks](/reference/rules/rules-of-hooks) when using them.
48+
Hook'lar JavaScript fonksiyonları kullanılarak tanımlanır, ancak nerede çağrılabilecekleri konusunda kısıtlamaları olan özel bir yeniden kullanılabilir UI mantığı türünü temsil ederler. Bunları kullanırken [Hook Kuralları](/reference/rules/rules-of-hooks) kurallarına uymanız gerekir.
4949

5050
* [Only call Hooks at the top level](/reference/rules/rules-of-hooks#only-call-hooks-at-the-top-level) – Don’t call Hooks inside loops, conditions, or nested functions. Instead, always use Hooks at the top level of your React function, before any early returns.
5151
* [Only call Hooks from React functions](/reference/rules/rules-of-hooks#only-call-hooks-from-react-functions) – Don’t call Hooks from regular JavaScript functions.

0 commit comments

Comments
 (0)