Inside web apps making an api request is a crucial task. So, in this video tutorial we will see how we can make api call from inside our React app.
Also in this video we will talk about some other important things while making api calls inside React app. Like why it is important to make api call from inside useEffect hook. Why we use useState hook to store the data coming from our backend server.
To make your life easy I have prepared a small and simple backend server. Which is the dummy server for our ecommerce application which we are building from our day one video tutorial.
Support the channel: https://www.patreon.com/ndpniraj
Source Code: https://github.com/ndpniraj/react-ecom
Backend Server: https://github.com/ndpniraj/ecom-dummy-backend
Complete Playlist: https://www.youtube.com/playlist?list=PLaAoUJDWH9WrKRIj5jBBXsIGaKM4LYa3b
Want to navigate to different parts of the video:
Introduction: 00:00
Setting up and Explaining backend server: 00:23
Reviewing our react ecom app: 03:52
Making api call: 07:08
Why useEffect for api call: 12:39
Why useState on api call: 14:13
======================
Video Series You May Like:
======================
Create Music Player (React Native): https://www.youtube.com/playlist?list=PLaAoUJDWH9Wqatfwa4SEfyFevrl8QefcN
MERN Stack Auth (Node JS & React Native): https://www.youtube.com/playlist?list=PLaAoUJDWH9WpmAUayPDh8zrwZoH_PZ4ON
Full Stack Blog App (Node JS & React Native): https://www.youtube.com/playlist?list=PLaAoUJDWH9Wrnp5VbwZlH4rR1F5CHGQLL
Note App (React Native): https://www.youtube.com/playlist?list=PLaAoUJDWH9WonhD-ZLyYber1O7LnoI62w
Social Media Links
Instagram - https://www.instagram.com/ndpniraj/
Twitter - https://twitter.com/ndpniraj
Linkedin - https://www.linkedin.com/in/niraj-dhungana-23387b207/