From 42ab5fb035f589306b879a542defd9db5b748a95 Mon Sep 17 00:00:00 2001 From: Deepak Gupta Date: Thu, 30 Sep 2021 14:15:40 +0530 Subject: [PATCH] Minor typo fix in useeffect.md the word "get" was missing in the sentence, so fixed that. --- lessons/useeffect.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lessons/useeffect.md b/lessons/useeffect.md index 87d1597..9db0782 100644 --- a/lessons/useeffect.md +++ b/lessons/useeffect.md @@ -6,7 +6,7 @@ section: "Core React Concepts" description: "useEffect is a criticl hook for React, allowing developers to do asynchronous actions like making HTTP requests" --- -We have enough to start making some requests now. We want the app to request an initial set of pets on initial load of the page. So let's make that happen using a special hook called `useEffect`. `useEffect` allows you to say "do a render of this component first so the user can see _something_ then as soon as the render is done, _then_ do something (the something here being an effect.) In our case, we want the user to see our UI first then we want to make a request to the API so we can that initial list of pets. +We have enough to start making some requests now. We want the app to request an initial set of pets on initial load of the page. So let's make that happen using a special hook called `useEffect`. `useEffect` allows you to say "do a render of this component first so the user can see _something_ then as soon as the render is done, _then_ do something (the something here being an effect.) In our case, we want the user to see our UI first then we want to make a request to the API so we can get that initial list of pets. Add this to SearchParams.js