From 114e23d467c5cf8a5697e636d7cfed27714dbb6a Mon Sep 17 00:00:00 2001 From: RanggaBS Date: Thu, 10 Jul 2025 14:55:37 +0700 Subject: [PATCH] Fix typo: 'ulanh' -> 'ulang' --- src/content/learn/you-might-not-need-an-effect.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/learn/you-might-not-need-an-effect.md b/src/content/learn/you-might-not-need-an-effect.md index 5342a27ed..15c4b8874 100644 --- a/src/content/learn/you-might-not-need-an-effect.md +++ b/src/content/learn/you-might-not-need-an-effect.md @@ -163,7 +163,7 @@ Komponen `ProfilePage` ini menerima *prop* `userId`. Halaman tersebut berisi *in export default function ProfilePage({ userId }) { const [comment, setComment] = useState(''); - // 🔴 Hindari: menyetel ulanh state setiap prop berubah di dalam Effect + // 🔴 Hindari: menyetel ulang state setiap prop berubah di dalam Effect useEffect(() => { setComment(''); }, [userId]);