1
00:00:00,820 --> 00:00:02,290
In this section.

2
00:00:02,740 --> 00:00:09,100
Let's have a look at how to make a HTTP request in react.

3
00:00:10,030 --> 00:00:15,490
HTTP request is a crucial part of any web application.

4
00:00:16,059 --> 00:00:25,780
So in this section we will explore how to use the use effect in React to make an HTTP request.

5
00:00:26,320 --> 00:00:32,350
We will also look at some of the tips for handling errors and loading data.

6
00:00:32,560 --> 00:00:41,530
So making a HTTP request simply means that fetching data from external API or server into react application

7
00:00:41,770 --> 00:00:46,570
and we are going to make use of use effect who and react.

8
00:00:46,720 --> 00:00:57,760
So let's have a look at what is actually used effect the use effect who is react JS feature that allows

9
00:00:57,760 --> 00:01:02,680
you to perform side effects in your component.

10
00:01:03,130 --> 00:01:10,630
So a side effect are operations that don't directly affect the render of your component, but instead

11
00:01:10,630 --> 00:01:18,550
they can be used to perform other operations such as making HTTP requests and that is what we are going

12
00:01:18,550 --> 00:01:19,300
to use.

13
00:01:19,420 --> 00:01:29,590
So in this section we will explore how to use the use effect hook to make HTTP request in React JS application.

14
00:01:30,070 --> 00:01:35,470
We will look at some of the types of handling errors and loading data.

15
00:01:35,470 --> 00:01:40,920
So the use effect hook is similar to component amount and component.

16
00:01:40,920 --> 00:01:47,260
The update and component will amount lifecycle and react class component.

17
00:01:47,260 --> 00:01:54,100
So if you are familiar with React before the current version, we use what is called a mean class method

18
00:01:54,100 --> 00:01:56,530
or class way of creating component.

19
00:01:56,530 --> 00:02:03,760
So you can think of this effect as performing the action after the render is committed to the screen.

20
00:02:04,090 --> 00:02:12,970
So in the next video we will have a look at how to make a HTTP request in React using use effect.

