React API Call to Get Pokemon JSON Data using Axios and useEffect in ReactJS in Hindi #55

  Рет қаралды 145,677

Thapa Technical

Thapa Technical

Күн бұрын

Пікірлер: 199
@ThapaTechnical
@ThapaTechnical 4 жыл бұрын
I hope you like the video :) ➡️ ReactJS Tutorial in Hindi 2020 Playlist Link: kzbin.info/aero/PLwGdqUZWnOp3aROg4wypcRhZqJG3ajZWJ I
@ajayshirote7619
@ajayshirote7619 3 жыл бұрын
Your every video teaches lot of things and also entertain us thapa sir
@shivampali9033
@shivampali9033 3 жыл бұрын
Vinod bhai Custom PC pr video banao ek
@denisshingala
@denisshingala 3 жыл бұрын
Yes, ek custome pc par video banao "npm start" Fast work kaise karta hai?
@MaxProgramming
@MaxProgramming 4 жыл бұрын
One of my friends asked me that he wants to learn Web development in Hindi. You are one of the best and I have shared your channel to him!
@ThapaTechnical
@ThapaTechnical 4 жыл бұрын
Thank you so much ☺️
@AvinashKumar-jf9mx
@AvinashKumar-jf9mx 4 жыл бұрын
Or koi channel h?
@MaxProgramming
@MaxProgramming 4 жыл бұрын
@@AvinashKumar-jf9mx Bohot saare channels hain. But English is very important in the career of development. So we can start with Hindi, but we have to learn to speak and understand good English as a developer
@cthulhulalala7182
@cthulhulalala7182 4 жыл бұрын
@@MaxProgramming Although ,its good to learn english but I don't think english is that necessary to do code just like maths.
@MaxProgramming
@MaxProgramming 4 жыл бұрын
@@cthulhulalala7182 Yeah. English is good to learn but not necessary. But as the world uses English a lot, we should at least chat in English which makes our English better without a lot of hard work.
@yogeshvashist3980
@yogeshvashist3980 3 жыл бұрын
Awesome, please make a video on CRUD operations through API, actually I am a .Net programmer and want to learn React. Your videos are very helpful and I am leaning it from your videos.
@noobCoder26
@noobCoder26 3 жыл бұрын
Had a great fun in building this project ....😁😁Thanks Bhaiyaa
@asmereg
@asmereg 4 жыл бұрын
You are the best, Bhai 🔥 TYSM! Bohot dinon se I was trying to learn how to use info from an API. Finally understood everything.
@simranbanwait
@simranbanwait 2 жыл бұрын
number 1 card number pe bulbasaur hi hota tha , this is so nostalgic
@ayushdedhia25
@ayushdedhia25 4 жыл бұрын
Yes sir, please make a video on custom pc build 🥰
@listology-mostamazingtop1041
@listology-mostamazingtop1041 4 жыл бұрын
Sir your video are very helpful for me you're video are great
@biswajeetpadhi5713
@biswajeetpadhi5713 4 жыл бұрын
Yes sir make video on costume pc build
@muheebpasha543
@muheebpasha543 4 жыл бұрын
Vinod sir kindly make videos on backend as laravel framework with react js in front end
@KuldeepSingh-pl7rv
@KuldeepSingh-pl7rv 2 жыл бұрын
I still don't get it every time on page rending useEffect run but without use effect i also get same thing with normal fetch or may another call back function
@ShanifKhan98
@ShanifKhan98 2 жыл бұрын
And boom guys 💥😂
@hasnainmalick8888
@hasnainmalick8888 3 жыл бұрын
No one: Literally No One: Thapa: In every video aj ka video bohat awesome honay wala ha to chaliye juray rahe xD:hahahha.
@NeerajSingh-ru1cf
@NeerajSingh-ru1cf 4 жыл бұрын
setMoves(res.data.moves[0].move.name);
@RITIKJAINBCE
@RITIKJAINBCE 4 жыл бұрын
no it is giving error
@NeerajSingh-ru1cf
@NeerajSingh-ru1cf 4 жыл бұрын
@@RITIKJAINBCE check your code again
@mathswithsirnoushad6261
@mathswithsirnoushad6261 4 жыл бұрын
yes, it's working
@mohitsaud2071
@mohitsaud2071 3 жыл бұрын
correct ✔✔✔✔✔
@biplabpaul3822
@biplabpaul3822 3 жыл бұрын
@@RITIKJAINBCE Because there is actually no JSON data in the pokemon API for 0 index..try with any other index number it will work with the same code
@AkhileshYadav-lv3kh
@AkhileshYadav-lv3kh 2 жыл бұрын
Thank you sir 👍👍
@savitaraghuvanshi
@savitaraghuvanshi 4 жыл бұрын
Sir please create tutorial on react native as well.
@kiyochi7705
@kiyochi7705 3 жыл бұрын
thats app development not web dev. Its total different topic
@techkershubb
@techkershubb 4 жыл бұрын
Thapa bhai very nicely you did explanations Thanks keep going
@mohsinbohra1174
@mohsinbohra1174 4 жыл бұрын
Very Good Video. Can you make video on one more challenge on covid api with the help of React Axios. @Vinod ....With The help of Map function we can define name within moves..
@ashwinwaikar9015
@ashwinwaikar9015 3 жыл бұрын
ye ek pikachu hai par wo ek array hai.... lol ...btw nice video
@ritiksahu5310
@ritiksahu5310 3 жыл бұрын
Bhaya you doing great work keep it up #IndianGuyOnYT
@syedahasan_gillani3878
@syedahasan_gillani3878 4 жыл бұрын
Mujy ya Error aa raha ha Failed to load resource: the server responded with a status of 404 ()
@shaheensiddiqui1952
@shaheensiddiqui1952 2 жыл бұрын
yes sit it was really owsome the good thing is that we useed useEffect hook here sir due to you it become to much easy for us to learn react buttrlyyyyyyyyyyy bohot shukriya
@demoforall4305
@demoforall4305 4 жыл бұрын
@Thapa Technical Sir Series me 104 videos the to aaj morning me 54 kese ho gaye ??
@ijazDeveloper786
@ijazDeveloper786 4 жыл бұрын
sir jesy hum js me class ko toggle karty thy same wesy React me hum kese cls add i mean toggle kar skty ha
@YourTechWhiz
@YourTechWhiz 3 жыл бұрын
You should have use dependency list in the useEffect.
@ShanifKhan98
@ShanifKhan98 2 жыл бұрын
Optional hai .. compulsory nhi
@YourTechWhiz
@YourTechWhiz 2 жыл бұрын
@@ShanifKhan98 It isn't compulsory, but there is something called " good programming ".
@Kuku__Das344
@Kuku__Das344 Жыл бұрын
Samajh nhi aya pr deekh kr acha lga
@curiouscosmos786
@curiouscosmos786 3 жыл бұрын
And BOOM Guys 😁
@nandkishor838
@nandkishor838 3 жыл бұрын
Hi sir, I started reactjs by following your videos, and I stocked here, while I am making an API request by using axios my API is called multiple time as I uses const response variable to assign every value from response. what I need is , want to hold this response in a variable that I can fetch all the data from that variable without making multiple API call. please response ASAP
@0xRudro
@0xRudro Жыл бұрын
20:40 jhoot pakra gya
@souvikpal106
@souvikpal106 3 жыл бұрын
Sir, I've one question if we use setState inside useEffect if will cause an infinite loop because as you told that useEffect becomes active after the page render and if we use setState it will render the page. So it will cause an infinite loop. Correct me if I'm wrong.
@DemonHeadYT
@DemonHeadYT Жыл бұрын
if dependencie diya rehga toh
@pushpamaywad8221
@pushpamaywad8221 Жыл бұрын
Awesome👍👍
@ujwalsingh2636
@ujwalsingh2636 4 жыл бұрын
Sir 1 website bna do react m multipages wla
@AsifAli14280
@AsifAli14280 4 жыл бұрын
same question
@creativeakshara8438
@creativeakshara8438 4 жыл бұрын
Nice 👍👌 Sir please snake game in JavaScript And please make canvas tutorials 🙏🙏🙏🙏🙏
@nicetomeetugaming7024
@nicetomeetugaming7024 2 жыл бұрын
Thanks for this amazing video!
@surajmishra432
@surajmishra432 3 жыл бұрын
Bhai plz btaayein ki aapne custom pc build kaise kiya.. bahut se students ko ye problem aati hai ki unka development server start hone mai bahut time lagata hai or sath hi overall pc performance b achi nahi rehti .. plz share some tips about how did you solve this problem
@rathodmehul4081
@rathodmehul4081 4 жыл бұрын
Hello Aapake search bar ke said me Jo icon he vo kese aate he . And use full shortcut icon kese download kare....♥️
@manurajput8421
@manurajput8421 4 жыл бұрын
Sir Your Teaching Way is best And You try to understand easy way for any topics So Hello Sir I am also a Programmer in CS Branch I have need to guide for you and please help me FOR Making Car Parking Website with Database and full Web development Please Help me and guide me Sir
@manurajput8421
@manurajput8421 4 жыл бұрын
Please sir Guide me n Help me
@manurajput8421
@manurajput8421 4 жыл бұрын
Please make this own Video car Parking and booking also Please me
@nicetomeetugaming7024
@nicetomeetugaming7024 2 жыл бұрын
You should try yourself bro.
@amarchand1504
@amarchand1504 3 жыл бұрын
res.data.moves[0].move.name sir aesy name ham get kar sakten hen...
@osamaayub405
@osamaayub405 Жыл бұрын
sir can you make a video on crud operations using axios having issues in it.
@DEEPANSHU_NAG
@DEEPANSHU_NAG 4 жыл бұрын
Great project 💯👏🏻✌🏻
@ThapaTechnical
@ThapaTechnical 4 жыл бұрын
Glad you like it!
@DEEPANSHU_NAG
@DEEPANSHU_NAG 4 жыл бұрын
@@ThapaTechnical 👍🏻
@demoforall4305
@demoforall4305 4 жыл бұрын
@@ThapaTechnical Sir Series me 104 videos the to aaj morning me 54 kese ho gaye ??
@aviseksahoo1953
@aviseksahoo1953 4 жыл бұрын
@@ThapaTechnical Cannot read property 'length' of undefined show kar raha hai
@ShubhamGupta-mx2hn
@ShubhamGupta-mx2hn 4 жыл бұрын
Make video on DEEP LINKS IN REACT NATIVE EXPO
@SonuSharma-lh1qq
@SonuSharma-lh1qq 4 жыл бұрын
bro muje bhi ese fast process krna h to kya me SSD use kr skta hu .....
@10yearsago84
@10yearsago84 Жыл бұрын
If we don't have set an initial value for num in useState hook, it will call the pokemon API without any num value and it returns 404 error to me. Anyone else faced this same issue ??
@Shadab_Qazi
@Shadab_Qazi Жыл бұрын
yes I am having same problem.
@sidtiwari9258
@sidtiwari9258 4 жыл бұрын
Need your support , can you make video that how can we just show moves name in another select's option . I tried and that works but browser get hangs after few mins..seems data rendering continuously .
@rashmiwankhade4097
@rashmiwankhade4097 3 жыл бұрын
Hello,i like the vedio...can you please give me some clarity what is difference between fetch api and fetch interceptor,axios api and acios interceptor...
@manishkhanna4054
@manishkhanna4054 4 жыл бұрын
and boom
@aanchalsonawane7749
@aanchalsonawane7749 5 ай бұрын
Great Sir
@sumitpaul5839
@sumitpaul5839 4 жыл бұрын
setMoves(response.data.moves[0].move.name);
@VarshaSingh-hi2sb
@VarshaSingh-hi2sb 4 жыл бұрын
From where to get that pikachu link... can someone plz tell..?
@SachinVerma-td8ou
@SachinVerma-td8ou 4 жыл бұрын
It's pokeapi
@baksh9595
@baksh9595 3 жыл бұрын
Sir I have a question about useEffect() , I have created this project but I also want to add another select Option but when I change the select item it only also call useEffect method. so how can I call useEffect method on only one event.
@abhaysingh-os3qu
@abhaysingh-os3qu Жыл бұрын
useEffect(()=>{ }[value]); just before the function ends use square bracket and write the variable which u want to change everytime it is selected/changed. hope this helps
@rajbannasa7662
@rajbannasa7662 3 жыл бұрын
thank you so much sir
@huzaifashaikh818
@huzaifashaikh818 4 жыл бұрын
Acha smjha ta ho
@KalyaniTalks
@KalyaniTalks 4 жыл бұрын
Sir hm us moves ke array ko kaise fetch kr skte hai ?
@The_Guiders_Consultancy
@The_Guiders_Consultancy 2 жыл бұрын
Thapa bhai I love you
@PROTECHRAHUL
@PROTECHRAHUL 2 жыл бұрын
useEffect me function k andar function me axios kyo use kiya h directly useEffect k function me use kyo nii kiya h , anyone?
@satyajitdas6133
@satyajitdas6133 3 жыл бұрын
how can you export the fetched data from axios to another react file?
@KuldeepSingh-pl7rv
@KuldeepSingh-pl7rv 2 жыл бұрын
i guess you should try useContext()
@spacex3360
@spacex3360 2 жыл бұрын
Context is best but redux is also best option for big project
@rushikeshavachat4282
@rushikeshavachat4282 3 жыл бұрын
Thapa meri bhai console mein api ka data mil nahi raha hai.Code is right.Issa kyon hoo raha hai.Reply my comment.
@yogeshsharma8966
@yogeshsharma8966 4 жыл бұрын
sir ,axios ke or bhi methode, hai put,delete,push wo bhi btao please
@abhijeetmokale5604
@abhijeetmokale5604 3 жыл бұрын
Custom PC Video Lao Vinod Sir!!! please
@covidnineteen5249
@covidnineteen5249 4 жыл бұрын
Thank you sir !!!
@officialbeingdeveloper
@officialbeingdeveloper 4 жыл бұрын
hello bhai i want to disable right click on i am able to disable by using oncontextmenu and pointer event ; but this also disabled to scrolling feature on file as i have used pointer event none but without using both pointer-event : none and Oncontextmenu:return false : the allow to right click!! please tell me how can i disable right click on with enabled scrolling feature!!
@aviseksahoo1953
@aviseksahoo1953 4 жыл бұрын
Cannot read property 'length' of undefined show kar raha hai
@ritiksahu5310
@ritiksahu5310 3 жыл бұрын
fresh OS always makes 'react' fast toh agar loading slow ho rahi hai toh refresh your PC
@nevilpereira1988
@nevilpereira1988 3 жыл бұрын
This is for get.. kindly make video for post api, Super and class
@DesiMatrixXD
@DesiMatrixXD 4 жыл бұрын
Kya mujhe koi ye batayega, axios use karne ke liye useEffect ki kya zaroorat hai? Mai toh bina useEffect ke bhi data fetch kar sakta hu. toh useEffect ka actual use kaha hai?
@slmshady539
@slmshady539 3 жыл бұрын
aap useEffect k andr api call karte hai taaki jaise hi page load ho maltb k jaise hi page pehli bar brower pe aega waise hi useEffect harkat me aega aur api call ho jaega... ek tareeka hua karta tha useEffect se pehle componentDidMount kark bas wahi kaam ab useEffect se karte hai
@DesiMatrixXD
@DesiMatrixXD 3 жыл бұрын
@@slmshady539 mujhe 2 months pehle hi samjh gaya tha bhai, but still appreciate your effort brother ❤️
@slmshady539
@slmshady539 3 жыл бұрын
@@DesiMatrixXD koi baat nahi bhai... Toh react developer ban gaye ya abhi college me ho aap
@DesiMatrixXD
@DesiMatrixXD 3 жыл бұрын
@@slmshady539 college me hi hu fir bhi developer hu. Maine abhi jald hi ye project banaya hai react-blogging-app.herokuapp.com/ Custom backend ke saath.
@slmshady539
@slmshady539 3 жыл бұрын
@code fire I'm glad it helped 👍
@swatisinha3141
@swatisinha3141 3 жыл бұрын
How to post data in a form in react plz make video using functional components
@introvertleader
@introvertleader 4 жыл бұрын
Custom PC video want!
@ridarachakula7865
@ridarachakula7865 2 жыл бұрын
Amazing.. Thankyou..
@atifaslam2965
@atifaslam2965 3 жыл бұрын
if you want to use a particular move from the array. then just do this setMoves(res.data.moves[0].move.name); change 0 if you do not like
@prash0202
@prash0202 3 жыл бұрын
Not working - Cannot read property '0' of undefined
@atifaslam2965
@atifaslam2965 3 жыл бұрын
@@prash0202 console.log(res.data) first thn see what happens
@prash0202
@prash0202 3 жыл бұрын
Thanks Atif... Please help me and let me know how can i show 2 values with only single useState([])
@spacex3360
@spacex3360 2 жыл бұрын
@@prash0202 state ko as a object use karo
@yogitataluja1058
@yogitataluja1058 3 жыл бұрын
setmoves(res.data.moves[0].move.name)
@Vishalvidyapeeth10th
@Vishalvidyapeeth10th Жыл бұрын
Cors error in react how to solve it
@rupalisarkar85
@rupalisarkar85 3 жыл бұрын
Please make a tutorial video on react native
@rajatsaraswat64
@rajatsaraswat64 5 ай бұрын
Api k data kese aa rha h Y he pta nhi h sir Km s km es data ko kese nikalte h jo to bta dete
@Wishdomloom9462
@Wishdomloom9462 2 жыл бұрын
nice video brother
@Ronak3262
@Ronak3262 Жыл бұрын
In sab mein se mujhe sirf ek pata tha aur hua tha Pikachu😅
@khushboosharma9717
@khushboosharma9717 4 жыл бұрын
How to implement this with lifecycle methods?
@darshanadey4696
@darshanadey4696 4 жыл бұрын
Awesome video
@kalyanipriyadarsini
@kalyanipriyadarsini 3 жыл бұрын
Wow
@ankitaggarwal2700
@ankitaggarwal2700 4 жыл бұрын
Bhaiya *custom pc build* per video bnao
@bhakuninavneet3906
@bhakuninavneet3906 4 жыл бұрын
Thanku sir
@coderhh6515
@coderhh6515 4 жыл бұрын
Cool video
@yashfarm6913
@yashfarm6913 3 жыл бұрын
Hii sir, please answer: how get images of Pokemon in our react app?
@nicetomeetugaming7024
@nicetomeetugaming7024 2 жыл бұрын
You can get using api, also there are various methods to do it.
@syedsabeehahmedfatmi1099
@syedsabeehahmedfatmi1099 3 жыл бұрын
pawfect video
@JavaScriptYatra
@JavaScriptYatra 2 жыл бұрын
// for getting the moves name setName(result.data.name); setMoves(result.data.moves.length); const hero = result.data.moves; hero.map((val, index)=> { return console.log(val.move.name); })
@KIRTIMGM-u4p
@KIRTIMGM-u4p Жыл бұрын
sir please provied api link in your video.
@mithunkumars6097
@mithunkumars6097 4 жыл бұрын
Your are awesome
@thecoderraj3777
@thecoderraj3777 4 жыл бұрын
Thanks sir :)
@raj5583
@raj5583 3 жыл бұрын
It is very easy to pull data from dummy services. If possible try to fetch data from the real time backend server then this will not be this easy
@nicetomeetugaming7024
@nicetomeetugaming7024 2 жыл бұрын
wrong.
@bivusingha2079
@bivusingha2079 4 жыл бұрын
Bhaiya API CORS error ke uper kuch or video banau please please please.
@raj.saurabhh
@raj.saurabhh 3 жыл бұрын
Axios ka kya kaam?
@kshitizshah6685
@kshitizshah6685 4 жыл бұрын
axios ko bare ma poila kina na vaneko bro , thet malai 2 minute lagthyo poila...LOL
@siddhartharauta7483
@siddhartharauta7483 4 жыл бұрын
Sir customer pc video banao plz
@siddhartharauta7483
@siddhartharauta7483 4 жыл бұрын
Sry custom pc typing mistake😋😋
@abhishekporwal5056
@abhishekporwal5056 3 жыл бұрын
How can we do this with the help of TOKENS??
@nicetomeetugaming7024
@nicetomeetugaming7024 2 жыл бұрын
which tokens?
@sudarshanthakur4129
@sudarshanthakur4129 4 жыл бұрын
setmovesname(res.data.moves[0].move.name);
@abdulmuneebafridi4437
@abdulmuneebafridi4437 4 жыл бұрын
love u bro for ur commment
@introvertleader
@introvertleader 4 жыл бұрын
1st view like comment & gm!
@muhammadahsanqureshi6704
@muhammadahsanqureshi6704 3 жыл бұрын
any one plz help me ..i am facing error in when writting res.data.moves.length. this error:Unhandled Rejection (TypeError): Cannot read property 'length' of undefined? plz if anyone can help.
@rahul4tech
@rahul4tech 3 жыл бұрын
the problem is when you load page first time without changing drop down value axios calls the api without whatever option and the data returned is empty or i say undefined, so you should code like whenver use effect is called it should check that option is defined or not for eg: if(option){ const fetchData = async() => { const res = await axios.get(`pokeapi.co/api/v2/pokemon/${option}`) setData((prev) => { return { ...prev, pokeName : res.data.name, pokeMoves : res.data.moves.length } }) } fetchData() }
@ankurpandey7103
@ankurpandey7103 Жыл бұрын
@@rahul4tech thanks brother for the help!
@samirbante8554
@samirbante8554 Жыл бұрын
Mai chala pokemon dekhne
@surajali1101
@surajali1101 2 жыл бұрын
25 alpha saphirea-sapphire-sapphire
@Ninja-cn6kj
@Ninja-cn6kj 3 жыл бұрын
image kaise laye isme
@listology-mostamazingtop1041
@listology-mostamazingtop1041 4 жыл бұрын
First view , like , comment by me
@ThapaTechnical
@ThapaTechnical 4 жыл бұрын
Many many thanks
@knowledgeera3210
@knowledgeera3210 2 жыл бұрын
we will get that by result.data.moves[0].move.name
React Router Tutorial in Hindi | React Router Dom in Hindi in 2020 #56
25:23
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
Why I avoid useEffect For API Calls and use React Query instead
17:45
Axios Tutorial in Hindi || Fetch Data using Axios in React JS 🔥
20:44
Thapa Technical
Рет қаралды 214 М.
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,3 МЛН
useEffect Hook in React JS in Hindi in 2020 #54
16:15
Thapa Technical
Рет қаралды 218 М.
How to FETCH data from an API using JavaScript ↩️
14:17
Bro Code
Рет қаралды 178 М.
Add Infinite Scrolling in React JS in Hindi 🔥
19:02
Thapa Technical
Рет қаралды 50 М.
40 APIs Every Developer Should Use (in 12 minutes)
12:23
Coding with Lewis
Рет қаралды 405 М.
All useEffect Mistakes Every Junior React Developer Makes
22:23
How To Debug React Apps Like A Senior Developer
21:07
Web Dev Simplified
Рет қаралды 191 М.