React tutorial in Hindi #51 fetch API | GET method

  Рет қаралды 138,656

Code Step By Step

Code Step By Step

Күн бұрын

In this react js tutorial for beginners series we learn what is API and how to call API with interview questions in react js. This video is made by anil Sidhu in the Hindi Language.
git link for this video
github.com/ani...
Playlist for complete React series in Hindi
link • React tutorial for beg...
Call Get Method API
What is API?
Call API?
Get API data in State
Make List from API
Join on Insta @php.step.by.step
• API kya hoti hai - Ani...

Пікірлер: 104
@noone_and_nobody
@noone_and_nobody 3 жыл бұрын
Right on the money!
@shubhamkurhade325
@shubhamkurhade325 2 жыл бұрын
Bhai this video has helped me the way that I cant even tell you. I m building my first ever web project and it took me 1 week to create my backend with spring boot and 5 days for my react front end....everything was going makkhan and then I have spent whole week connecting my backend to my front and I have failed miserably....u have helped me a lot....tussi great ho pajji
@SantoshSingh-mo8mr
@SantoshSingh-mo8mr 4 жыл бұрын
Thank you bro bahut hi easy way me describe kiya h ( USE of API )....... 😍😍😍😍
@S.Sikarwar8
@S.Sikarwar8 2 жыл бұрын
Sir aapke sabhi video shandaar h
@ranaimranahmed2532
@ranaimranahmed2532 4 жыл бұрын
thnx sir bht achi videos hn apki from rana pakistani
@Amazing_shorts9313
@Amazing_shorts9313 8 ай бұрын
Well and Simple word explaination
@anshulshrivastav7687
@anshulshrivastav7687 4 жыл бұрын
this was such an amazing video.. 👌👌👌👌👌👌👌👌👌
@ghostff7422
@ghostff7422 2 жыл бұрын
Hey
@alimaruf503
@alimaruf503 3 жыл бұрын
2:55 . You've mentioned how to create API in Laravel/Nodejs. Can you please refer me the link of how to make API with Laravel ?
@CodeMap01
@CodeMap01 3 жыл бұрын
Thanks for this tutorial your video help me to complete my blog website project 🥰
@sadique.akhtar
@sadique.akhtar 5 ай бұрын
Sir aapne localhost:4000 ko kaise use Kiya wo nhi bataya
@AniruddhSinghIndia
@AniruddhSinghIndia 2 жыл бұрын
sir u r excellent
@ranafahad6388
@ranafahad6388 3 жыл бұрын
thank you soooooooooooooooooooooooooooooooooooooooo much
@codestepbystep
@codestepbystep 3 жыл бұрын
Welcoooooooooooooome 😉
@techmania300
@techmania300 Жыл бұрын
Wounderful
@Inforaaz1
@Inforaaz1 2 жыл бұрын
Good Explanation ♥️
@alishakamboj1767
@alishakamboj1767 2 жыл бұрын
Thank you sir😊
@reetusingh2780
@reetusingh2780 Жыл бұрын
Thanks for this tutorial It helps me lot🙏🙏
@codestepbystep
@codestepbystep Жыл бұрын
My pleasure 😊
@umairali2360
@umairali2360 2 жыл бұрын
good one
@zia_officia4204
@zia_officia4204 8 ай бұрын
first install json server to create your own api it is one of the video of code step by step to practice
@ishaq47108
@ishaq47108 Жыл бұрын
you didnt convert it to the string and working correctly but it shows me a error when i am not converting it to string .
@ravikumarchaudhari1606
@ravikumarchaudhari1606 3 жыл бұрын
nice explaination
@Rohit_Rai901
@Rohit_Rai901 2 жыл бұрын
Kiya using api integrations live chat app ban sakta hen
@navingupta1525
@navingupta1525 4 жыл бұрын
Sir, please tell me ...if we are using async and await to fetch the data ..then how to use the map with useState? Because initially the 'state' is empty and map function will not work with state.map().. I mean that state.map() function will execute first than the async and await in useEffect().
@codestepbystep
@codestepbystep 4 жыл бұрын
useState([]). Blank array will work in your case
@sauravpandey7767
@sauravpandey7767 Жыл бұрын
Bhai agar hame api ko data display karne se rokna ho jabtak ki sara data load na ho jaye to uske liye kya karenge
@Arcgamerz27
@Arcgamerz27 9 ай бұрын
it is showing that data.map is not a function , what to do
@amns67622
@amns67622 2 жыл бұрын
Sir isme address details ko kese get kre kyuki isme age kafi prototypes hote hai?
@bhuvanjoshi2676
@bhuvanjoshi2676 3 жыл бұрын
sir agaar isme ek view kaa button lgaye or 1 bar mai 1 id ko view karana ho to kyaa krenge
@sanjeevlodhi6711
@sanjeevlodhi6711 9 ай бұрын
Hare Krishna I have that have you made that todolist by yourself if yes then how
@manjunathanaik3166
@manjunathanaik3166 3 жыл бұрын
where u made todo api
@shubhamdixit-r8h
@shubhamdixit-r8h 8 ай бұрын
Sir ho nhi rha hai console log/warn dono me dikha नहीं रहा है error कूछ नहीं है. Dowload the React devtools for a better development experience aisa दीखा रहा है. Browser extension edge chrome है
@bhavanakalankar6858
@bhavanakalankar6858 3 жыл бұрын
But from wher to get that API link
@P_soni377
@P_soni377 Жыл бұрын
ha yaar API LINK KAHA SE LAYE
@mfAdvice
@mfAdvice Жыл бұрын
Make a video on websocket
@yashjivani7854
@yashjivani7854 3 жыл бұрын
local host 4000 per todo ko kese access karu?
@satwikgawas5582
@satwikgawas5582 4 жыл бұрын
Hello sir bahut din ho Gaye PHP tutorial start kijiye.
@najeebashah76
@najeebashah76 2 жыл бұрын
sir can you make latest vedios for react that will help us a lot
@Apna_experience
@Apna_experience 2 жыл бұрын
Sir axios use kiye h aap ki fetch
@surpalahuja2979
@surpalahuja2979 Ай бұрын
I created json file but it's opening in 3000. Can someone please tell how to change port to 4000?
@yashmadaan8067
@yashmadaan8067 2 жыл бұрын
worth it
@himanshushekhar3304
@himanshushekhar3304 4 жыл бұрын
Can we use express inside react.
@SacredScrolls786
@SacredScrolls786 2 жыл бұрын
Sir lekin aapne toh yeh bataya hi nhi ki yeh api aapne kaise banaya...ab iske bina ham khud se get api kaise kar sakte hai.
@codestepbystep
@codestepbystep 2 жыл бұрын
API banan, react developer ka kaam nhi hota bro, wo backend developers bnate hai
@tanbirahammad4622
@tanbirahammad4622 2 жыл бұрын
Aap API kaha se le ayi Hum kaha a use karenge?
@kulyog6626
@kulyog6626 2 жыл бұрын
If you are getting data.map() issue, put JSON file in public folder.
@helloworld-rq6gl
@helloworld-rq6gl 2 жыл бұрын
m getting error data.map() is not a function
@kulyog6626
@kulyog6626 2 жыл бұрын
@@helloworld-rq6gl have tried my solution?
@helloworld-rq6gl
@helloworld-rq6gl 2 жыл бұрын
yes ! it worked thanks
@swapnilcodes
@swapnilcodes 3 жыл бұрын
How did you create that api...users list...localhost/todo something??
@UdayPawarUdi
@UdayPawarUdi 3 жыл бұрын
Refer the old react tutorial video of creating project
@nikleshniks
@nikleshniks 3 жыл бұрын
@@UdayPawarUdi Which video? tell us pl.
@swapnilgawde7024
@swapnilgawde7024 3 жыл бұрын
@@nikleshniks u got it ?
@nikleshniks
@nikleshniks 3 жыл бұрын
@@swapnilgawde7024 Yes.. Thanks for the help ❤️❤️😊
@riturajoura8738
@riturajoura8738 Жыл бұрын
​@@swapnilgawde7024link of api video
@bhavsar9904
@bhavsar9904 Жыл бұрын
API called 2 times for me what is the reason?
@bhavamsingh8092
@bhavamsingh8092 6 ай бұрын
sir apki api kam nhi kr raha hai mai 2024 memapki video dekh rha hu please sahi kriye
@nitishpal5552
@nitishpal5552 2 жыл бұрын
create you own api using mockapi
@fitifysky
@fitifysky Жыл бұрын
localhost4000 kasie banayi h
@navingupta1525
@navingupta1525 4 жыл бұрын
there is delay in fetching data from an API which shows an error marking cannot read property 'MAP" is undefined.'.....because state value is empty. mene ASYNC and AWAIT bhi use kiya h..lekin kaam nhi ban pa rha h. kya koi or way h ki jab tak API se Data "STATE" me load nhi ho jata tab tak MAP function render na ho react me? PLEASE SIR HELP ME...I AM FRESHER AND WORKING ON LIVE PROJECT ..BAUT TIME LAGA DIYA H MENE ISS ERROR ME.LEKIN KOI SOLUTION NHI MIL RHA. PLEASE HELP.
@rohitrajput7544
@rohitrajput7544 Жыл бұрын
.map is not function how to solve it ????
@tridevthakur7711
@tridevthakur7711 2 жыл бұрын
Sir mera console mae result[] nhu dekh raha hai. Warning deraha hai kya kare. Warning hai::webpac- dev-server started Hot Module Replacement enabled
@abhisheiksharma18
@abhisheiksharma18 3 жыл бұрын
aapne API ki kisi bhi video ka API ka link nahi diya bhai, uske bina kaise kaam karenge ? Please provide us API link .
@ShubhamKumar-us3nh
@ShubhamKumar-us3nh 10 ай бұрын
json formmate kaha milega
@neeluzcreationz6986
@neeluzcreationz6986 2 жыл бұрын
how to call csv api in react hooks methods
@sapnavyas7992
@sapnavyas7992 3 жыл бұрын
mere y error kyu bta ra h data map is not a function
@nitins5923
@nitins5923 2 жыл бұрын
How to fetch with get method with putting token for authenticating the access.
@sportscity5487
@sportscity5487 3 жыл бұрын
Sir ads control karien gandy scenes aa rahy hein.
@codestepbystep
@codestepbystep 3 жыл бұрын
Bhai ye to apki browser history and cache ke hisab se aati h, :D
@sportscity5487
@sportscity5487 3 жыл бұрын
@@codestepbystep i never want to install snack video and Tiktok but why its showing with negative video...
@tanujbhattdotin
@tanujbhattdotin 3 жыл бұрын
@@codestepbystep 😂😂😂
@codestepbystep
@codestepbystep 3 жыл бұрын
@@sportscity5487 Bro, if you install them then why they will show you ads. Logic ?????
@FaisalAnsari-ch4pl
@FaisalAnsari-ch4pl 2 жыл бұрын
@@codestepbystep 😛😛😛
@ashishwilltellyou6497
@ashishwilltellyou6497 3 жыл бұрын
Fetch url kidher se laye app please batao
@deveshtembheker1315
@deveshtembheker1315 Жыл бұрын
Json placeholder website se Google per available hai abhi bhi
@eramperwez187
@eramperwez187 2 жыл бұрын
sir, how to remove empty array
@nop9974
@nop9974 3 жыл бұрын
how to set contact from 7 (WordPress plugins) post API in react ? i am finding this solution since 1 month and still is not slow .. please make a video about this .
@yogeshrajput5712
@yogeshrajput5712 3 жыл бұрын
please answer [CORS disabled]?
@namanjain8970
@namanjain8970 3 жыл бұрын
call back function kya hota hae?
@KapilKumar-pk9vz
@KapilKumar-pk9vz 4 жыл бұрын
Hi Sir
@bholagupta07
@bholagupta07 Жыл бұрын
locahost:4000 kha se add kre
@peterson2060
@peterson2060 3 жыл бұрын
I don't know you see my comment or not but i have a question if my user want to enter an smthing and according to their input i want to show smthing using api.. for example I'm using railway api for search stations, my user enter new york there then i get response from api in console but I'm unable to show it to my website.. who to do that??
@mohammadejaz2892
@mohammadejaz2892 3 жыл бұрын
i have same question
@shashikantdubey2057
@shashikantdubey2057 2 жыл бұрын
I am getting error typeError: data.map is not a function
@hafizsohaibhassan190
@hafizsohaibhassan190 2 жыл бұрын
const[data,setData]=useState([]);
@heartpicks7912
@heartpicks7912 4 ай бұрын
playlist ko sahi se structure karo bhai bahot jumbled hai
@ramprasadyadav9303
@ramprasadyadav9303 2 жыл бұрын
{ why happening this ?}
@nazeedkhan10
@nazeedkhan10 2 жыл бұрын
Same issue ... Did you solved this ?? Please tell if you have solved this ..
@ramprasadyadav9303
@ramprasadyadav9303 2 жыл бұрын
Cheak useState initial is correct or not
@hafizsohaibhassan190
@hafizsohaibhassan190 2 жыл бұрын
@@nazeedkhan10 const[data,setData]=useState([]);
@bhavsar9904
@bhavsar9904 Жыл бұрын
woh localhost:4000/todo kaha se laye woh to explain karo pehle
@rishichoubey5060
@rishichoubey5060 3 жыл бұрын
data.map is not a function error
@wajahatshaikh121
@wajahatshaikh121 3 жыл бұрын
same error i am facing
@codetechpro6196
@codetechpro6196 3 жыл бұрын
@@wajahatshaikh121 same error
@yogeshrajput5712
@yogeshrajput5712 3 жыл бұрын
bhai jb tk comments ka pe response nhi kro tb tk subscribe or viewer increment nhi badenge
@kokirisanjaya4692
@kokirisanjaya4692 Жыл бұрын
Sir api kahase laye bataya nehi
@Namankataria
@Namankataria 2 жыл бұрын
I am having error with the api and error is data.map is not an function but everything is correct My code import React from "react"; import { useEffect, useState } from "react"; export const Blog = () => { const [data, setData] = useState([]); useEffect(() => { fetch("localhost:1337/api/blogs", { method: "GET", }) .then(function (response) { return response.json(); }) .then(function (data) { console.log(data); setData(data); }); }, []); return ( {data.map(res => { return {res.title}; })} Blog ); };
@mdabidkalam3527
@mdabidkalam3527 2 жыл бұрын
import React from "react"; import { useEffect, useState } from "react"; export const Blog = () => { const [data, setData] = useState([]); useEffect(() => { fetch("localhost:1337/api/blogs", { method: "GET", }) .then(function (response) { return response.json(); }) .then(function (data) { console.log(data); setData(data); }); }, []); return ( {data.map((res) => { return {res.title}; })} Blog ); };
@rinnivatsa4569
@rinnivatsa4569 2 жыл бұрын
bro solution mila kya
React tutorial in Hindi  #52 What is Postman in Hindi
9:42
Code Step By Step
Рет қаралды 58 М.
SLIDE #shortssprintbrasil
0:31
Natan por Aí
Рет қаралды 49 МЛН
Непосредственно Каха: сумка
0:53
К-Media
Рет қаралды 12 МЛН
24 Часа в БОУЛИНГЕ !
27:03
A4
Рет қаралды 7 МЛН
Fetch method Api Call in React js with GET | PUT | POST
28:02
Seeema Holiday Developer
Рет қаралды 78 М.
Handling API in python
27:24
Chai aur Code
Рет қаралды 48 М.
React tutorial in Hindi  #53 POST Method in Rest API
18:21
Code Step By Step
Рет қаралды 110 М.
Advance JavaScript - Fetch API Tutorial in Hindi / Urdu
47:46
Yahu Baba
Рет қаралды 194 М.
Axios Tutorial in Hindi || Fetch Data using Axios in React JS 🔥
20:44
Thapa Technical
Рет қаралды 215 М.
What is an API ? Simply Explained
5:21
Apna College
Рет қаралды 2,3 МЛН
This is the Only Right Way to Write React clean-code - SOLID
18:23
Context API in react | get the concept
29:00
Hitesh Choudhary
Рет қаралды 79 М.
SLIDE #shortssprintbrasil
0:31
Natan por Aí
Рет қаралды 49 МЛН