From ea956efa406aa90c787cc6e16b507b8e2fed7553 Mon Sep 17 00:00:00 2001 From: Mayada <115709272+Maddily@users.noreply.github.com> Date: Wed, 15 Jan 2025 08:23:16 +0200 Subject: [PATCH] Improve phrasing --- react/the_react_ecosystem/fetching_data_in_react.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/the_react_ecosystem/fetching_data_in_react.md b/react/the_react_ecosystem/fetching_data_in_react.md index 1574927d4c4..005885b7386 100644 --- a/react/the_react_ecosystem/fetching_data_in_react.md +++ b/react/the_react_ecosystem/fetching_data_in_react.md @@ -32,7 +32,7 @@ We're making a request to the JSONPlaceholder API to retrieve an image, and then ### Using fetch in React components -Now, let's take a look at how we can incorporate `fetch` into a similar React component. One common use case is to fetch data from an API when a component mounts, so that the data can be displayed on screen. +Now, let's take a look at how we can incorporate `fetch` into a React component, similar to our previous example. One common use case is to fetch data from an API when a component mounts, so that the data can be displayed on screen. Whenever a component needs to make a request as it renders, it's often best to wrap that `fetch` inside of an effect.