Build A Pokémon Application With React - Tutorial

  Рет қаралды 185,885

Web Dev Simplified

Web Dev Simplified

Күн бұрын

Пікірлер: 179
@simonkalu
@simonkalu 5 жыл бұрын
You're truly what you called yourself"Web Dev Simplified". You explain complex topics so effortlessly and also your videos are so inspiringly awesome
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Thank you so much! That really means a lot to me and inspires me to push forward and make more even better videos.
@pastorfred2543
@pastorfred2543 5 жыл бұрын
He made me to understand ES 6 & 7 promises, Async & Await and High order array functions that I staright away implemented them in my project. He is a Hero.
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
@@pastorfred2543 Thank you so much! You are truly way too kind to me. All I did was give you the information. You were the one that processed and consumed that information to implement amazing things.
@liorocker1
@liorocker1 5 жыл бұрын
Came here after React in 30 minutes, I think this is a very accurate path to move forward as a React newbie, and now everything is more clear to me. Thank you very much for this amazing videos :)
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
You are very welcome!
@sauer.voussoir
@sauer.voussoir 4 жыл бұрын
I just shouted wow at the end of the video, when all your explanation are very straight forward and very easy to understand!
@DeltaNrOne
@DeltaNrOne 3 жыл бұрын
I like how you just dont care about how good the page looks and just codes trough it. Awsome video!
@amritkumaragarwal9425
@amritkumaragarwal9425 Жыл бұрын
Both ur tutorial and calmness while teaching are adorable :)
@rayanfernandes2631
@rayanfernandes2631 3 жыл бұрын
This was one of the best Tutorial i watched... Understood a lot about hooks.
@____prajwal____
@____prajwal____ 5 жыл бұрын
Awesome tutorial! loved it! I think we need more of these mini tutorial projects based on API's and many other stuff!
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Thanks! I really enjoy making these mini projects and have a ton more that I want to do.
@michaelwatson9089
@michaelwatson9089 Жыл бұрын
He wasn't kidding when it comes to learning the core topics of a project. This would of been longer if we built out an actually Pokémon app and got bogged down with html and CSS. This was a good tutorial.
@niomi
@niomi 4 жыл бұрын
Thank you so much, I've been scouring the web looking for a simple and easy way to do pagination with react and have gotten very complex answers. Saved me a ton of time!
@mohammedalmukhtar8949
@mohammedalmukhtar8949 5 жыл бұрын
You got sunburn budd? Looks like you had a fun long weekend :P Thanks for the video!!
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Super sunburnt, but it was a fun weekend so I would say it was worth it.
@DevashishRoyChowdhury
@DevashishRoyChowdhury 6 ай бұрын
Very great way of teaching ! You taught this so easily I thought it will we very hard
@waynes9744
@waynes9744 5 жыл бұрын
This is my No.1 web dev channel.
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Thank you so much!
@rasifrana
@rasifrana 5 жыл бұрын
I am definitely taking your React Course. love your videos. simple to understand. Thanks for the contents.
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Thank you so much! I really hope you enjoy the course.
@stclark278
@stclark278 3 жыл бұрын
Your tutorials are great to watch. I really enjoy that you do examples that are more complicated than simple todo apps like most other KZbinrs. I'm impressed at how well you explain what you are doing and why in a easy to understand but thorough way!
@bennett3625
@bennett3625 5 жыл бұрын
My man, awesome tutorial! Watched it before I started my work day and loved the concise explanations for everything. Grats on 30k btw!
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Thank you so much! Reaching 30k amazing subscribers feels unreal. I cannot believe it has happened so quickly.
@kneetotheface
@kneetotheface 2 жыл бұрын
@@WebDevSimplified how does it feel to look back at this comment and have already passed 1M subs?? 30K < 1M ur such a 1337 h4x0r, my d00d!!!
@AlThePal78
@AlThePal78 3 жыл бұрын
Your videos are awesome and it is easier to understand you then my bootcamp i went too
@ravishbisht502
@ravishbisht502 Жыл бұрын
Thanks bro. After 4 years of this code i faced some difficulties running it in my device but i figured it out and really helpful❤
@laurenmarcinek8146
@laurenmarcinek8146 3 жыл бұрын
i spent $12k on a 6 month course and have learned more from you in two weeks than i did that entire class lmfao ily tysm
@sovietbot6708
@sovietbot6708 3 жыл бұрын
$12K? I spent $200 on a year subscription of Codecademy, and they even teach you how to pass technical interviews in their front end career path, and it's at your own pace
@antonharbers9264
@antonharbers9264 5 жыл бұрын
Best Content on the Web right here
@rohitkudalkar92
@rohitkudalkar92 5 жыл бұрын
sir your videos are really unique and interesting for every frontend developer. thanks for making great videos.
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Thank you!
@gojosensei7081
@gojosensei7081 Жыл бұрын
Awesome tutorial, such a simple explanation!
@pjguitar15
@pjguitar15 3 жыл бұрын
I honestly use fetch over axios but because WebDev Simplified is teaching Axios, i guess it's time to use axios now haha
@xouchthathurtzx
@xouchthathurtzx 3 жыл бұрын
I was taught with axios out the gate, so I just stick with it. there are 3 parts: .get(url here).then(action after hitting API).catch(error message here)
@AlThePal78
@AlThePal78 3 жыл бұрын
I like axios with async better because you can make it simple. Fetch haves promises and they always render successful even when they are not :)
@getvivekjoshi
@getvivekjoshi 5 жыл бұрын
Truly simple and easy to understand, thanks!!!
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
You're welcome!
@mauricemakesmovies
@mauricemakesmovies Жыл бұрын
Just built my first React app, thanks so much Kyle! Heads up: When I tried to use return () => cancel() I got the error that cancel was not a function, it only worked when I removed the parenthesis.
@shilpavaidya1077
@shilpavaidya1077 Жыл бұрын
simple and efficient way to start my react app... thank you!
@israelmanzo8725
@israelmanzo8725 5 жыл бұрын
Beautiful tutorial using hooks. Thank you..!
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
You're welcome!
@adilbaqach9176
@adilbaqach9176 4 жыл бұрын
Bro thank you so much u made my life easier, I wish I could buy ur course right now
@WebDevSimplified
@WebDevSimplified 4 жыл бұрын
I'm really glad I could help!
@Gabriel-V
@Gabriel-V 2 жыл бұрын
Got sunburned. You workout too? Nice, nice
@theazimjon
@theazimjon 2 жыл бұрын
Really nice man, your videos so understandable.I clearly understand complex topics with your videos.I'm happy for find you from KZbin. I wish I had a teacher like you
@tonybrown7847
@tonybrown7847 2 жыл бұрын
nice overview, nice start to an app
@pastorfred2543
@pastorfred2543 5 жыл бұрын
My Hero in the world of Programming.. This tutorial on #Pokemon is a warming up for the #React Course @ #WDS. Thanks Sir.
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
You're welcome! I'm glad you enjoyed it.
@vashu8472
@vashu8472 3 жыл бұрын
Learned a Lot! Thanks Kyle
@worldfromhome4033
@worldfromhome4033 2 жыл бұрын
Awesome as always
@yashraj6565
@yashraj6565 3 жыл бұрын
Thank you sir. Bring more adv react projects.
@joelkuijper
@joelkuijper 5 жыл бұрын
Great tutorial as always!
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Thank you!
@chloeafp
@chloeafp Жыл бұрын
Such a great tutorial! I wish you'd explain how to get the pokemon images from the API too, I cant figure it out :D
@moogle-studio
@moogle-studio 5 жыл бұрын
Thank you, you explain everything in such a neat way
@kavithachellasamy2393
@kavithachellasamy2393 2 жыл бұрын
Simple and more informative Thanks 👍🙏
@antoniobutcher
@antoniobutcher 4 жыл бұрын
digging the sunburn ;)
@atikehasan5872
@atikehasan5872 Жыл бұрын
its great tutorial foreever
@conaxlearn8566
@conaxlearn8566 5 ай бұрын
How is it possible that the goto functions at line 41 and 42 would ever be null, since they are declared on line 28 and 32?
@JoeWong81
@JoeWong81 5 жыл бұрын
another solid video bro
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Thanks!
@coderb8762
@coderb8762 2 жыл бұрын
thank you bro for good teaching
@hassaneoutouaya
@hassaneoutouaya Жыл бұрын
Thank you so much!
@museitian85
@museitian85 3 жыл бұрын
Does anyone else get this error when trying to create the PokemonList div around 7:52? TypeError: pokemon.map is not a function
@thomasblack3415
@thomasblack3415 3 жыл бұрын
I had this issue and then I realized I didn't have useState(['bulbasaur', 'charmander']); on App.js. I only had useState(); After I fixed that, saved all and then refreshed the page, it worked just fine.
@thequickcode5144
@thequickcode5144 2 жыл бұрын
Yo Man u did a great job
@rangabharath4253
@rangabharath4253 5 жыл бұрын
Awesome. Thank you so much. Very interesting. Keep going. All the best
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
You're welcome!
@randymartin9040
@randymartin9040 9 күн бұрын
Hi, Love your videos. I think this lesson kind of jumped ahead a bit too fast. You talked about props and state in your last video, but there were no code examples in that video and in this video you've kind of skipped ahead with the hand-holding and I feel like there's some knowledge gap that's missing in order for me to understand 6:51 is an example of what I mean
@stevendornan7979
@stevendornan7979 5 жыл бұрын
Thank you :) Starting this right now.
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
I hope you enjoy it!
@arturdeandrade7443
@arturdeandrade7443 4 жыл бұрын
Great video! I'm getting really excited about React, can't wait to do more and more projects! About this one, I've found a bug and have no idea on what's causing it. I've gone to the last page, which only contains 4 Pokémon, and when I turn back to previous pages they all start showing only 4 Pokémon too. If anyone has encountered this problem too, and knows how to fix it and why it happens, I'd really like to fiind out!
@EmporerAxel
@EmporerAxel 4 жыл бұрын
This is caused by the limit parameter being set to 4 by default on the prev field of the response, once you get to the last page. The API seems to reuse whatever limit parameter you last used in any subsequent response. If you put [ setCurPageUrl(nextPageUrl.replace("limit=4", "limit=20")); ] in the gotoNextPage and gotoPrevPage methods it should fix it
@arturdeandrade7443
@arturdeandrade7443 4 жыл бұрын
@@EmporerAxel That was it, thank you very much!
@mehmetemin5404
@mehmetemin5404 5 жыл бұрын
amazing tutorial, thanks
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
You're welcome!
@planetmall2
@planetmall2 5 жыл бұрын
Great job!
@valenciawalker6498
@valenciawalker6498 Жыл бұрын
Thank you!
@jessyreach7130
@jessyreach7130 2 жыл бұрын
How can we access other properties of this API. Say I want to display the image or the HP, speed etc
@rayoo3008
@rayoo3008 3 жыл бұрын
perfect, thx for that
@RoshanKrSoni
@RoshanKrSoni 5 жыл бұрын
You are Amazing bro ❤️👌👌👌
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Thanks!
@the_yugandharr
@the_yugandharr Жыл бұрын
This looked deceivingly easy to me but man React isn't easy!
@hugod7955
@hugod7955 4 жыл бұрын
how can we do this by using a json document with all information on the pokemon, instead of using an api link ?
@sbbrownie
@sbbrownie 4 жыл бұрын
Thanks for the vid, I'm currently learning JavaScript as a pre-requisite to learning React, this was a good overview of what building in React actually looks like if that makes sense!
@danylfernandes6741
@danylfernandes6741 3 жыл бұрын
Wish you had more TypeScript-oriented projects, but your content is great nonetheless, so keep up the good work!
@vladimirjean
@vladimirjean 5 жыл бұрын
Awesome, thanks a lot.
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
You're welcome!
@lordfresh
@lordfresh 2 ай бұрын
Where does that cancel function come from? Is that from the dependency and available after importing it?
@AymenTDD
@AymenTDD Жыл бұрын
Thanks bro
@angiep3883
@angiep3883 3 жыл бұрын
Can you use class component as opposed to function? (E.g : class PokemonList extends React.Component{} ) ?
@bikidas5473
@bikidas5473 3 жыл бұрын
You saved my day! Thanks a lot
@MrWrklez
@MrWrklez 4 жыл бұрын
thank you!
@maxiequa567
@maxiequa567 5 жыл бұрын
Outstanding as always Kyle! Would you consider making a companion video creating the backend API with custom data? We have a ton of video tutorials on youtube using third party API data which is great for toy apps but understanding how to structure, code and deploy a bespoke API with the same features as the pokemon one but with our own data, would be full stack heaven :) p.s thanks so much for not doing another todo app!
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
I like this idea. I most likely won't make it a pokemon based backend, but I do plan to make some more advanced API tutorials. I personally love making APIs so they are always fun for me.
@maxiequa567
@maxiequa567 5 жыл бұрын
@@WebDevSimplified Awesome! Yeah agree doesn't need to be pokemon but have similar features within the API such as Limit for pagination and Previous and Next, which we can then populate with custom JSON data.
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
@@maxiequa567 Great idea. I will add that to my list of ideas for sure.
@maxiequa567
@maxiequa567 5 жыл бұрын
@@WebDevSimplified Sweet!!
@TheBorjj
@TheBorjj 4 жыл бұрын
Hello, very useful but I have a problem - when I try to fetch the result inside useeffect and then try to use the data it says it's undefined
@saumya7747
@saumya7747 2 жыл бұрын
Hey, I know its too late to ask but if you know the solution to this problem please help me out as well.
@aammssaamm
@aammssaamm 4 жыл бұрын
And if you have another 6 or 8 consecutive events affecting buttons’ visibility do you still dump all these into the same list? How do you resolve the conflicts then? If-else-if-else-if-else-if-else until you get burned out?
@nicocontigliani7141
@nicocontigliani7141 4 жыл бұрын
thanks alot !!!
@calvingonsalves7293
@calvingonsalves7293 5 жыл бұрын
This is the second youtube channel that I have subscribed to and watched most of the videos after pewdiepie :p . Quality content. I’ll surely be ready for the React course as many tech startups I have interviewed with want to switch over to React and React Native from Angular. Thank you :)
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Thank you so much for the support. Maybe one day I can beat out Pewdiepie :P
@theazimjon
@theazimjon 2 жыл бұрын
What is the first one
@calvingonsalves7293
@calvingonsalves7293 2 жыл бұрын
@@theazimjon Pewdiepie ofc.
@NicolayKjarnet
@NicolayKjarnet 2 жыл бұрын
Great tutorial, but you should've clicked to the end of the list of pokemon's so that we could fully understand the application.
@philipbeauford
@philipbeauford 3 жыл бұрын
Hi, plz lmk what you are using to append those full screen shots after the descript screencap portion?
@victoriaestes2087
@victoriaestes2087 Жыл бұрын
Great video, and very helpful but as of Axios v0.22.0, the cancelToken API is deprecated in favor of using a fetch-like AbortController. I'm currently trying to make the new way of canceling work with this project. Would be cool to see a video about it as well.
@rishisetpal3537
@rishisetpal3537 Жыл бұрын
any update to cancelToken API is deprecated replacement?
@injector6926
@injector6926 3 жыл бұрын
realy good
@viniciusneto6824
@viniciusneto6824 4 жыл бұрын
Great video! Thank you! How could I get the pokemon details? I mean... How would the API calls be arranged in a sequential structure? I'm really struggling with these Promises.
@highvibes6116
@highvibes6116 Жыл бұрын
how would you do this just using fetch() instead of the axios fetch?
@ManpreetSingh-ew8qs
@ManpreetSingh-ew8qs 3 жыл бұрын
Can't we use useCallback on nextpage and prevpage functions?
@timmy1752
@timmy1752 5 жыл бұрын
Hello! Thank you so much! Please make a pokedex application where there is a choice of types of pokemon, also in the field of each pokemon you can see his skills.
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
I do not plan to make any pokedex application right now since it is a fairly involved process. That would be a great project for you to practice with, though.
@timmy1752
@timmy1752 5 жыл бұрын
@@WebDevSimplified Okay, that's okay! Could you briefly help with how to get a date Pokemon where all his skills are and display on the screen?
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
@@timmy1752 This is very dependent on your use case. I would recommend looking at the API documentation for the API we use. That will give you all the information you need to implement this idea on your own. The best way to learn is to struggle through and create your own projects.
@skapha
@skapha 5 жыл бұрын
masterclass!
@brsh1190
@brsh1190 4 жыл бұрын
Hi Kyle, thank you for your work, very useful and impressive. Can you please help how to change the number of items on the first page (the default number is 20 from this api), thank you!
@toastytomatos5006
@toastytomatos5006 4 жыл бұрын
ok great vid but i keep getting this error when i press next on my button: TypeError: Cannot read property 'protocol' of null
@casadogaspar
@casadogaspar 4 жыл бұрын
Put your code here, so we can see if anything is wrong, or a github link.
@StarBattle08
@StarBattle08 4 жыл бұрын
I need help, after doing *setPokemonData(res.data)* it returns and empty array, but when i save the file 1 more time, it returns the data from the api, but when the app first loaded it returns an empty array
@willdedill
@willdedill 4 жыл бұрын
Who like me thought he was going to see the actual Pokemon game being built in this video :D
@JasbirSingh-kp4eu
@JasbirSingh-kp4eu 3 жыл бұрын
How much years of exp have you in web dev? Just curious to know😅😅
@frontmonkey2322
@frontmonkey2322 4 жыл бұрын
now I knew what "Web Dev Simplified" means... I wish you can teach it in Korean.. >< ㅎ
@mateuspamaral00
@mateuspamaral00 5 жыл бұрын
you're so amazing omg
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Thank you!
@digigoliath
@digigoliath 5 жыл бұрын
Nice!
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Thanks!
@jameskirkland4180
@jameskirkland4180 3 жыл бұрын
I was able to build this with the guide but i am having trouble figuring out how to style the component the right way. any tips on putting this list of pokemon into a box? Im trying to flesh out a pokedex eventually that pulls up stats and images when you select a pokemon from the list
@jameskirkland4180
@jameskirkland4180 3 жыл бұрын
i found i can get style elements throught the return statement in the app.js file, for example putting the list and pagination inside of a section tag and using css to style. is this the correct way of styling in react?
@ThePredsedatel
@ThePredsedatel 3 жыл бұрын
im too stupid for webdev. how can i reffer to sprites from poke api?
@mclovin72
@mclovin72 5 жыл бұрын
Why not use classes? Sometimes I see classes with components sometimes I see functions. I feel like classes are more structured and easier. Is it because classes are newer to js?
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
I am using functions since functions combined with hooks make doing complex things much easier. It also makes your code much cleaner to follow and read since you can easily break out and modularize your component while class components are quite bulky and hard to modularize. Hooks are also brand new to React so they have taken a lot of the bad things from classes and fixed them.
@aammssaamm
@aammssaamm 4 жыл бұрын
Because none of them knows what classes to built.
@aarav751
@aarav751 10 ай бұрын
7:42, 16:08, 20:00
@ibrahimkaiser7961
@ibrahimkaiser7961 4 жыл бұрын
Awesome tutorial and well-described. Though I'm new to react I understood most of it. But I'm facing a problem. As there are 964 pokemon, last page shows 4 pokemon, that's okay. But after that while clicking "previous" --> the page shows 4 pokemon everytime. How can I fix this. TIA
@viniciusneto6824
@viniciusneto6824 4 жыл бұрын
As pointed by @EmporerAxel - This is caused by the limit parameter being set to 4 by default on the prev field of the response, once you get to the last page. The API seems to reuse whatever limit parameter you last used in any subsequent response. If you put [ setCurPageUrl(nextPageUrl.replace("limit=4", "limit=20")); ] in the gotoNextPage and gotoPrevPage methods it should fix it
@lildesiikid
@lildesiikid 5 жыл бұрын
I'm getting this error: ./src/App.js Line 27:3: 'setCurrentPageUrl' is not defined no-undef Line 31:3: 'setCurrentPageUrl' is not defined no-undef Line 39:6: 'Pagination' is not defined react/jsx-no-undef ideas?
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
You need to make sure you import the Pagination component and create the setCurrentPageUrl variable with useState
@ronniesunshine1163
@ronniesunshine1163 5 жыл бұрын
I got super confused because I wrote "onclick" like normal javascript but for some reason react uses "onClick". That makes no sense at all. Damn consistency errors. Great video, as always
@WebDevSimplified
@WebDevSimplified 5 жыл бұрын
Lol. React used camel casing for the names because it makes it easier to read and follow.
@lukeyuanful
@lukeyuanful 2 жыл бұрын
Is possible to get the project source code?
@botobeni
@botobeni 4 жыл бұрын
dude please blink please don't stare into my soul
@mustafakosmaz178
@mustafakosmaz178 3 жыл бұрын
you achieve to simplify web actually
@bapple7844
@bapple7844 4 жыл бұрын
Web Dev "we haven't broken anything which is great" Simplified
@cingetorixhelvetii5172
@cingetorixhelvetii5172 2 жыл бұрын
I started to learn CSS, HTML and JavaScript 2 months ago and now I want to learn react, but this looks too advanced for my level ☹️
Learn React Today Course Launch!
2:13
Web Dev Simplified
Рет қаралды 17 М.
Learn React In 30 Minutes
27:16
Web Dev Simplified
Рет қаралды 1,3 МЛН
#behindthescenes @CrissaJackson
0:11
Happy Kelli
Рет қаралды 27 МЛН
Jaidarman TOP / Жоғары лига-2023 / Жекпе-жек 1-ТУР / 1-топ
1:30:54
Какой я клей? | CLEX #shorts
0:59
CLEX
Рет қаралды 1,9 МЛН
Learn useState In 15 Minutes - React Hooks Explained
15:45
Web Dev Simplified
Рет қаралды 1,2 МЛН
Build a React JS App with the Pokemon API
46:21
Jason Rivera
Рет қаралды 32 М.
Beginner React.js Coding Interview (ft. Clément Mihailescu)
36:31
Ben Awad
Рет қаралды 2,2 МЛН
How To Build A Flashcard Quiz With React
51:05
Web Dev Simplified
Рет қаралды 101 М.
Infinite Scrolling With React - Tutorial
25:28
Web Dev Simplified
Рет қаралды 368 М.
Build A Currency Converter In React
26:37
Web Dev Simplified
Рет қаралды 130 М.
How To Build CodePen With React
30:26
Web Dev Simplified
Рет қаралды 161 М.
The Perfect Beginner React Project
31:55
Web Dev Simplified
Рет қаралды 416 М.