From 2efb26ee475211db2632dfd3526badf7ae8b0696 Mon Sep 17 00:00:00 2001 From: Cool4ZBL Date: Fri, 13 Sep 2019 00:26:19 +0800 Subject: [PATCH] Update hooks-faq.md (#2340) Add missing `{` --- content/docs/hooks-faq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/hooks-faq.md b/content/docs/hooks-faq.md index 851d136d..0869e423 100644 --- a/content/docs/hooks-faq.md +++ b/content/docs/hooks-faq.md @@ -655,7 +655,7 @@ function ProductPage({ productId }) { return ; } -function ProductDetails({ fetchProduct }) +function ProductDetails({ fetchProduct }) { useEffect(() => { fetchProduct(); }, [fetchProduct]); // ✅ All useEffect dependencies are specified