Skip to content

Commit 9f19007

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function Bad({ cond }) {
5555
5656
function Bad() {
5757
for (let i = 0; i < 10; i++) {
58-
// 🔴 Bad: inside a loop (to fix, move it outside!)
58+
// 🔴 Kötü: bir döngünün içinde (düzeltmek için dışarı taşıyın!)
5959
const theme = useContext(ThemeContext);
6060
}
6161
// ...
@@ -65,7 +65,7 @@ function Bad({ cond }) {
6565
if (cond) {
6666
return;
6767
}
68-
// 🔴 Bad: after a conditional return (to fix, move it before the return!)
68+
// 🔴 Kötü: koşullu dönüşten sonra (düzeltmek için dönüşten önce taşıyın!)
6969
const theme = useContext(ThemeContext);
7070
// ...
7171
}

0 commit comments

Comments
 (0)