We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4f5eaf commit 114e23dCopy full SHA for 114e23d
src/content/learn/you-might-not-need-an-effect.md
@@ -163,7 +163,7 @@ Komponen `ProfilePage` ini menerima *prop* `userId`. Halaman tersebut berisi *in
163
export default function ProfilePage({ userId }) {
164
const [comment, setComment] = useState('');
165
166
- // 🔴 Hindari: menyetel ulanh state setiap prop berubah di dalam Effect
+ // 🔴 Hindari: menyetel ulang state setiap prop berubah di dalam Effect
167
useEffect(() => {
168
setComment('');
169
}, [userId]);
0 commit comments