React JS Tutorial - Build a Weather App With Cities Autocomplete

Поделиться
HTML-код
  • Опубликовано: 6 июн 2024
  • In this React project tutorial, you will learn to build a weather application using the OpenWeatherMap API and GeoDB API with places autocomplete.
    ✏️ Slobodan Gajic created this course. Check out his channel: / codewithsloba
    💻 Code: github.com/bobangajicsm/react...
    💻 OpenWeather API: openweathermap.org/
    💻 GeoDB Cities API: rapidapi.com/wirefreethought/...
    ⭐️ Course Contents ⭐️
    ⌨️ (0:00:00) Intro
    ⌨️ (0:00:30) How to get API keys
    ⌨️ (0:02:30) Creating the application and installing packages
    ⌨️ (0:05:25) Building city search component
    ⌨️ (0:23:48) Building current weather component
    ⌨️ (0:43:23) Fetching and mapping data from weather API
    ⌨️ (1:01:35) Building weather forecast component
    ⌨️ (1:34:20) Outro
    🎉 Thanks to our Champion and Sponsor supporters:
    👾 Raymond Odero
    👾 Agustín Kussrow
    👾 aldo ferretti
    👾 Otis Morgan
    👾 DeezMaster
    --
    Learn to code for free and get a developer job: www.freecodecamp.org
    Read hundreds of articles on programming: freecodecamp.org/news

Комментарии • 327

  • @zdfvbadfbadb
    @zdfvbadfbadb Год назад +59

    I'm an experienced React developer and enjoyed this tutorial as a refresher on how to interact with REST APIs using React. As with all such tutorials, you'll get the most out of it by going back and experimenting with all the things you can add, modify, expand, etc. Obviously, there is only so much Sloba could include here or the video would be several hours long. In this case, really exploring the API documentation to see what you can get from the API and then how you can use that data is very helpful in learning about working with REST APIs.
    As I saw from one other commenter, the tutorial does misinterpret what the forecast list array provides. The 40 items in that array are not consecutive daily forecasts, but rather they are consecutive hourly forecasts separated by 3 hours. The API returns 5 days of data and there are 8 3-hr segments in a 24-hr day, hence the count of 5 x 8 = 40. So, to be accurate, you would need to do more data manipulation to really be able to extract a multi-day forecast from this data, and it would only look forward at most 5 days (unless you upgrade to the paid version of the API). But, the point of this tutorial is to show an example of accessing and displaying REST API data, not building an amazing replacement for the current weather app on your phone.
    One last thing - new devs need to learn about protecting API keys. If you intend to upload this project to a public GitHub repo, then you need to learn about how to do it without exposing your personal API keys. Google "how to hide api key in github" for the how and why of this issue. (e.g., If you look at Sloba's Github repo for this tutorial, you will see he put placeholders in for the keys.)

    • @prantikseal
      @prantikseal Год назад

      hey Gfore thanks a lot for suggestion would look forward to doing this. Btw how can I reach out to you would love to connect on socials/ mail!

    • @abhyudaysoni
      @abhyudaysoni Год назад

      I noticed the same thing too when I saw the dates were same. And about hiding the API keys, how bad is it for this project, any idea?

    • @zdfvbadfbadb
      @zdfvbadfbadb Год назад +4

      @@abhyudaysoni - In this case, it is not a big deal since the API key is free so you aren't really trying to protect anything. But, it is just a good practice to protect API keys rather than sharing them publicly since you will eventually be working with keys that definitely need to be kept secret.

  • @z4br4k98
    @z4br4k98 Год назад +52

    Both react and working with APIs seem like very important skills. Thanks!

    • @CodewithSloba
      @CodewithSloba Год назад +3

      Awesome thank you, check more tutorials on my channel

  • @zdfvbadfbadb
    @zdfvbadfbadb Год назад +111

    Small error, but something React developers need to be aware of: Around 1:06:20, in forecast.js, we should use "data.list.slice()" not "data.list.splice()". The difference is that slice() is for copying a portion of an array (data.list in this case) and does not alter the original array. The splice() method is meant for removing part of an array, and replacing it if a 3rd argument is included, so it actually alters the original array, which you don't want to do since altering the props within a React component can lead to unexpected results.

  • @Missmmmmmmmmmm
    @Missmmmmmmmmmm Год назад

    guys i can't thank you enough, you're the best at dropping tutorials out there

  • @ShunShufen
    @ShunShufen Год назад +10

    Great little code along project with React. I like how it was quick and simple enough to not get lost and there was some interesting problem solving as well.

  • @programamacita
    @programamacita Год назад +1

    Awesome video, pretty straightforward, I managed to make this lovely app in no time! Hvala, Slobodane, svaka cast!

  • @hazadus
    @hazadus Год назад

    Great work, thanks! Enjoyed completing this mini project!

  • @ralfkah3
    @ralfkah3 Год назад +4

    Thanks for the great tutorial! My first little coding project with React and i''m sure, more will follow :-) Thanks!!!

  • @ricardogonzalezflores1955
    @ricardogonzalezflores1955 Год назад +5

    I just finished this project, I loved it. Thank you!!!!

    • @CodewithSloba
      @CodewithSloba Год назад +2

      Awesome, cheers more tutorials on my channel 👏🏻

    • @ameyakharate
      @ameyakharate Год назад +1

      Have you deployed this project

    • @Stephinmaju
      @Stephinmaju Год назад

      Without subscription for rapid api is it work ??

    • @pittuprasanth
      @pittuprasanth 11 месяцев назад

      Send deployment link

  • @bhagyashreekhairnar683
    @bhagyashreekhairnar683 9 месяцев назад

    brilliant course. Extremely grateful!!

  • @ishadowpeople6577
    @ishadowpeople6577 Год назад

    Just finished! It was awesome!!

  • @kushangayantha9130
    @kushangayantha9130 Год назад +1

    Been waiting for this one.. thank you

    • @CodewithSloba
      @CodewithSloba Год назад +1

      Awesome thank you, check more tutorials on my channel

  • @marccallueng3752
    @marccallueng3752 Год назад

    I know tNice tutorials is an old video but I’m new and thank god I finally found you . Thank you for such an amazing and helpful video ❤️

  • @nitrohite
    @nitrohite Год назад

    This was so much fun, thank you!

  • @abhiyanupreti417
    @abhiyanupreti417 Год назад +3

    Just completed react course from this channel and wanted to do some project🤭🤭 you guys just uploaded a new project thank you!

    • @CodewithSloba
      @CodewithSloba Год назад +2

      Awesome thank you, check more tutorials on my channel

    • @user-gs2zp3dm1v
      @user-gs2zp3dm1v Год назад

      did you face any problem like this. Failed to parse source map from 'D:\Project React\July22TutorialWeatherApp\weather-app
      ode_modules
      eact-select-async-paginate

  • @Vancha112
    @Vancha112 Год назад +4

    Currently learning react to use with django, thank you for this video :)

    • @logic_ok
      @logic_ok Год назад +2

      same bro. good luck

    • @Vancha112
      @Vancha112 Год назад +1

      @@logic_ok I think I got some of reacts basics down , but I found it a little complicated to properly integrate it in to an existing django application. Good luck to you! :)

  • @HaoNguyen-km9xj
    @HaoNguyen-km9xj Год назад +2

    Nice couse! the api really real, data fetch so cool... and the UI simple but really awesome! Thanks you!

    • @CodewithSloba
      @CodewithSloba Год назад

      You’re welcome, check more tutorials on my channel

  • @kdtallllll
    @kdtallllll 4 месяца назад +1

    This is so cool! I'm definitely going to mess around with the finished product.

  • @pedromiguelmazzeyvera4872
    @pedromiguelmazzeyvera4872 Год назад +3

    Really nice tutorial, just having basic knowledge of react I could understand almost everything he was doing👍👍

    • @huydao1588
      @huydao1588 Год назад +1

      how long did you learn react to understand what is he doing, I learn react for 1 month and some of it still got me confused

  • @rohitbagadi3058
    @rohitbagadi3058 Год назад

    Best video ever for Weather project Thanks alot 🙌

  • @alexanderkomanov4151
    @alexanderkomanov4151 Год назад

    Thanks a lot - it was very helpful! Really appreciate!

  • @canerdemircigm
    @canerdemircigm Год назад +2

    I read react documentation and little bit bored but this tutorial made fun my learning journey thanks.

  • @RahulSharma-wh8sq
    @RahulSharma-wh8sq Год назад

    Really enjoyed this video Thanks!

  • @smirnovsk
    @smirnovsk Год назад

    Thank you for your course!

  • @mohsenpasdar8159
    @mohsenpasdar8159 Год назад

    Thank you, it was great!

  • @matruxas
    @matruxas Год назад +9

    Exquisite lesson thank you, while working along had few lols
    1. 1:28:42 "Sea_Level in metres" - that would be air pressure at sea level 😂
    2. 58:14 Before converting API to &units=metric, you said temperature is in fahrenheit , that was kelvin. 300°F would be ~150°C 😂
    Subscibed to your channel :)

    • @CodewithSloba
      @CodewithSloba Год назад +2

      thank you for letting us know 🙏 awesome

  • @codeek0
    @codeek0 Год назад

    Awesome stuff brother!

  • @mrinalmishra3196
    @mrinalmishra3196 11 месяцев назад

    Thankyou Sloba and freeCodeCamp

  • @elrickster3076
    @elrickster3076 Год назад +7

    Awesome video!
    Around minute 53:00 I missed the `import { useState } from 'react';` so I was getting the error "useState not defined" but then I caught it, phew.
    Hope this helps some other 'newbies' like me out there, lol.

  • @snehitlal771
    @snehitlal771 Год назад

    This is what i needed for my react project ..Thanks fcc

  • @nikhilev3840
    @nikhilev3840 Год назад

    Thank you. I made it as your tutorial

  • @MatthewDelongUK
    @MatthewDelongUK Год назад +19

    Just starting this after installing all relevant dependencies/packages. Wish me luck, will update "when" it's completed, looking forward to the challenge and learning 👍

  • @sarupk
    @sarupk Год назад

    THanks a lot!
    10/10 for study

  • @alexeysmirnov6211
    @alexeysmirnov6211 Год назад

    Thank you so much!

  • @shoryapawar2219
    @shoryapawar2219 Год назад +1

    Thankyou I learned a lot It was very beginner friendly though

  • @marcoitalia97
    @marcoitalia97 Год назад

    Thanks mate! 💌

  • @tgrionak4263
    @tgrionak4263 Год назад

    Love video, tnk u very much

  • @messi_0nly
    @messi_0nly 8 месяцев назад

    Much Love ❤

  • @mahendranath2504
    @mahendranath2504 Год назад

    Thank you so much 😊🙌🏻👐🏻👏🤝👍👊🏻🤜🏻✌️

    • @CodewithSloba
      @CodewithSloba Год назад

      Awesome thank you, check more tutorials on my channel

  • @marufmarzuq
    @marufmarzuq Год назад

    Informative 💜

    • @CodewithSloba
      @CodewithSloba Год назад

      Awesome thank you, check more tutorials on my channel

  • @arturgorbunov3792
    @arturgorbunov3792 Год назад

    Thank you!

  • @nnamdiezeh4159
    @nnamdiezeh4159 Год назад +1

    Great tutorial. I am having an issue tho. the current weather component is not showing just the search component. I have checked with your code on git hub but i still cant figure where the issue is. Note: the weather component was showing before i linked the api

  • @andygr1n1
    @andygr1n1 Год назад +2

    thanks, very cool api. It is much more interesting to build this using redux toolkit or mst and TS :). But the Idea - is only what we need )))
    And what was confusing for me, is styling the select component 🙃, because it has some module.css like generated code in DOM.

  • @shlomiyahbes4882
    @shlomiyahbes4882 Год назад

    Thank you !! 👑🏆❤💖✨

  • @alphareborn9908
    @alphareborn9908 Год назад +1

    Thank you so much for this Sloba. This video will for sure help with my future coding career. Was this made in Java programming language?

    • @CodewithSloba
      @CodewithSloba Год назад +1

      You’re welcome, that’s Javascript

    • @zdfvbadfbadb
      @zdfvbadfbadb Год назад +1

      React is a Javascript library, not Java

  • @sajjadjafari7861
    @sajjadjafari7861 Год назад

    Yooooo that's amazing

  • @WanKy182
    @WanKy182 Год назад +15

    Foercast request sends you weather forecast for 5 days with data every 3 hours. It sends data for example (from 2022-07-15 12:00:00 to 2022-07-20 09:00:00). You splice data and map over first 7 items(that is day and a half or something like that), but you mark them as day of the week.
    And not the best idea to use labels instead of spans everywhere)

    • @CodewithSloba
      @CodewithSloba Год назад +1

      there is a confusion in their api. I tested this data against their day forecast widget and it worked correctly. But you are correct

    • @pedromiguelmazzeyvera4872
      @pedromiguelmazzeyvera4872 Год назад

      @@CodewithSloba Hi! so the original video code is correct and does it reflect the next 7 days? Thank you!

    • @Vlada1969
      @Vlada1969 Год назад +1

      @@pedromiguelmazzeyvera4872 Seems that original code is not OK... Every object in list array has dt and dt_txt properties which shows date and time for the current forecast and it is clear that those are not daily but three hourly forecasts. This error doesn't make this tutorial invalid as the code is valid it's just that assumption about the data is wrong. Fix can be done by just using some vanilla js to map original data to required format...

    • @pedromiguelmazzeyvera4872
      @pedromiguelmazzeyvera4872 Год назад

      @@Vlada1969 thank you!!

    • @user-ku7dh7od7i
      @user-ku7dh7od7i Год назад +1

      @@pedromiguelmazzeyvera4872 no, it can not be correct. because for this API daily forecast is not free. I think RUclipsr just use 3 hour forecast to show how it works in software developpe level

  • @saifulrasel6667
    @saifulrasel6667 Год назад

    Thank you very much

  • @soumyapradhan6537
    @soumyapradhan6537 22 дня назад

    Very Helpful and Informative video 🤩🤩

  • @crack9058
    @crack9058 Год назад +2

    Please upload some videos on React typescript and some advance projects using React-Redux.

  • @soumyapradhan6537
    @soumyapradhan6537 22 дня назад

    Amazing teaching, Keep it bro 😀😀

  • @sydvys
    @sydvys Год назад +2

    This man is not explaining anything he's just telling what to do

  • @tripily5533
    @tripily5533 Год назад +1

    Wow, since when do you have so much subs!

  • @rishiraj2548
    @rishiraj2548 Год назад

    Great thanks

    • @CodewithSloba
      @CodewithSloba Год назад

      Awesome thank you, check more tutorials on my channel

  • @eddiemetriumzone3583
    @eddiemetriumzone3583 Год назад

    Question guys
    (not stack overflow)
    Is the weather api in the free plan limited by days because I saw it says 5 days 3 hours a day weather updates with geo location?

  • @thimiraakash8941
    @thimiraakash8941 Год назад

    Thank you

  • @brendon5553
    @brendon5553 11 месяцев назад

    nice i finished it

  • @amiralirezaei2108
    @amiralirezaei2108 Год назад +1

    Awesome

    • @CodewithSloba
      @CodewithSloba Год назад

      Awesome thank you, check more tutorials on my channel

  • @skb5739
    @skb5739 Год назад +20

    I am from mechanical background but lot of interest in coding. Hoping this will help to add to my resume and to gain lot of knowledge.

    • @CodewithSloba
      @CodewithSloba Год назад

      Absolutely

    • @gerrell865
      @gerrell865 Год назад

      it sort of will but you need to actually complete a big project from start to end. Huge difference than doing tutorials, small projects like these.

  • @itexpert4193
    @itexpert4193 Год назад +1

    great. gud job

  • @juanjosegouvea
    @juanjosegouvea Год назад

    thanks!

  • @mohammadsamiur4916
    @mohammadsamiur4916 Год назад

    Love you from Bangladesh

  • @user-gs2zp3dm1v
    @user-gs2zp3dm1v Год назад +4

    Failed to parse source map from 'D:\Project React\weather-app
    ode_modules
    eact-select-async-paginate
    ode_modules
    eact-is-mounted-hook How can i resolve this error.

    • @kathhill1
      @kathhill1 Год назад

      I'm getting the same error.

  • @revulation1971
    @revulation1971 Год назад

    how did you defined axios it wasn't in geo api before

  • @mohammedmaresh9963
    @mohammedmaresh9963 Год назад

    start watching... enjoy

    • @CodewithSloba
      @CodewithSloba Год назад

      Awesome thank you, check more tutorials on my channel

  • @anantlaghane4733
    @anantlaghane4733 Год назад

    sir. which use in project backend and frent end i am comfujen .

  • @prathikchandrahegde3735
    @prathikchandrahegde3735 Год назад +1

    didn't get it how r u getting the options tab when in the start

  • @rullyahsani4613
    @rullyahsani4613 Год назад

    awesome

    • @CodewithSloba
      @CodewithSloba Год назад

      Thank you 🙏, feel free to check more tutorials on my channel

  • @nickst2797
    @nickst2797 Год назад +14

    I want to learn React, but all the tutorials are long as hell! This seems decent. Is this good enough for a beginner to learn React?

    • @CodewithSloba
      @CodewithSloba Год назад +9

      This will help for sure, but only one tutorial can’t teach you

    • @jonathantribble7013
      @jonathantribble7013 Год назад +5

      Just code and code! If you don’t understand a part, that’s ok. You’ll understand it in the next tutorial that you do.

    • @DrGuanto
      @DrGuanto Год назад +5

      React is like the hell, that's why tutorials are that long! 😂

    • @nwaguchima2280
      @nwaguchima2280 Год назад +3

      I personally don't even take short tutorials, except of course It is focused on a tech I really want to learn. Only long tutorials can really give you so many implementations. If you are looking to earn so much from this career, I think it's only natural to be willing to give so much.

    • @CodewithSloba
      @CodewithSloba Год назад +1

      I agree what you say, just make sure to take time to digest informations

  • @PiyaliMukherjee-be2ir
    @PiyaliMukherjee-be2ir Месяц назад

    can you please tell whether there is any way to fix the issue that both max and min temparature is same

  • @gurbanoglu5143
    @gurbanoglu5143 4 месяца назад +1

    Please execute the following commands to avoid the error at 1:09:15:
    npm i accordion
    npm i react-accessible-accordion

  • @kazisohail6798
    @kazisohail6798 Год назад +3

    api has changed not working now

  • @abbas.hussain23
    @abbas.hussain23 Год назад +1

    Hey, I'm not able to load data for different cities. My code is only fetching or showing the data of a particular country irrespective of any city name typed...

    • @muhammedsamedozdemir7863
      @muhammedsamedozdemir7863 Год назад

      One way to fix this is by appending a unique identifier, such as a timestamp, to the API endpoint URL. This ensures that each API request is unique and not cached.
      const loadOptions = (inputValue) => {
      const timestamp = Date.now(); // Unique identifier
      const url = `${GEO_API_URL}/cities?minPopulation=1000000&namePrefix=${inputValue}×tamp=${timestamp}`;

      return fetch(url, geoApiOptions)
      .then(response => response.json())
      .then(response => {
      return {
      options: response.data.map((city) => {
      return {
      value: `${city.latitude} ${city.longitude}`,
      label: `${city.name}, ${city.contryCode}`,
      };
      }),
      };
      })
      .catch(err => console.error(err));
      };

  • @user-te2pe5qm8o
    @user-te2pe5qm8o Год назад

    Thanks! I almost finished this, but the forecast info is 4 hours interval, and I prefer to make something different from this tutorial, thanks anyway.

  • @_santhosh16
    @_santhosh16 Год назад

    Constantly throws module not found cant resolve error for current weather.js

  • @vaporycoder
    @vaporycoder 5 месяцев назад +1

    why not use axios instead of fetch?

  • @KvnIsLit
    @KvnIsLit Год назад

    where can i download the icon folder?

  • @TheMrTadeotadeo
    @TheMrTadeotadeo Год назад +1

    Hello! I am going along with the tutorial, but by the 12 minute mark the search bar still hasn't appeared on app? The console is not sending me any errors. Do you know what could be the issue?

    • @ibeliveinawp
      @ibeliveinawp Год назад +2

      Had the same issue, didn't install react-select-async-paginate correctly. Use this command "npm i react-select-async-paginate --force --save"

    • @TheMrTadeotadeo
      @TheMrTadeotadeo Год назад

      @@ibeliveinawp thanks I'll check that out

  • @mcdthedev
    @mcdthedev Год назад

    i am getting this error (city
    :
    "Belgrade, RS"
    cod
    :
    "404"
    message
    :
    "Internal error"
    [[Prototype]]
    :
    Object
    ) which suggest i am not receiving data how can i resolve this problem ?

  • @yusufabdullahi2874
    @yusufabdullahi2874 11 месяцев назад +1

    Nice project, I really love the explanations💥💥
    I have a little bug I want to fix: anytime I search for a city, it's keeps on fetching data (weather and forecast) how do make it fetch once and hence the input search?

    • @user-kw8qh4bc6p
      @user-kw8qh4bc6p 8 месяцев назад

      hey did you found the bug I am also facing same issue

    • @yusufabdullahi2874
      @yusufabdullahi2874 8 месяцев назад

      @user-kw8qh4bc6p you are probably updating a state in the search component. that's why the component keeps re-rendering and keeps fetching data for the input.
      Let me know if this info helps

    • @marisaksaunders
      @marisaksaunders 4 месяца назад

      i'm having this same issue and I really can't figure it out, I even copied his source code from the search.js file and its still happening

  • @anitaoberstar3790
    @anitaoberstar3790 Год назад +1

    1:09:00 Uncaught TypeError: Cannot read properties of undefined (reading 'splice')...

    • @IsrarAhmed-bi6mg
      @IsrarAhmed-bi6mg Год назад +1

      In 48:27 where he stored forecast data in variable name forecastWeatherFetch, for that change ${WEATHER_API_URL}/weather to ${WEATHER_API_URL}/forecast.

  • @PrincessOfIlluminati
    @PrincessOfIlluminati Год назад

    Whenever I type something to the search bar I keep getting this error "You have exceeded the rate limit per second for your plan, BASIC, by the API provider" any idea how to solve this? I tried to type slower or refresh the page but didn't work.

    • @CodewithSloba
      @CodewithSloba Год назад

      You need to add a delay, as you are making too many requests

  • @enchantress2100
    @enchantress2100 Год назад

    What is the best way to study with these videos for actual learning? I know they are an amazing skill, but there is a subtle line between learning and just following commands. I’m asking to the ones that are improving their skills at the moment. 🥺 how do you do it? Some advice would be appreciated Thanks!

  • @tripily5533
    @tripily5533 Год назад +1

    Pogchamp

  • @JoyMajumder672
    @JoyMajumder672 Год назад +1

    forecast.js isn't returning. splice method error. anyone please help me? 1:06:27

  • @Dev-Phantom
    @Dev-Phantom Год назад +1

    cool

  • @keerthib2247
    @keerthib2247 Год назад

    I'm getting ' GEO_API_URL' is defined but never used warning

  • @pranjalkumar9871
    @pranjalkumar9871 11 месяцев назад

    when I input the prop {data.city}, it shows an error that data is null, please help!

  • @quangaonguyen7898
    @quangaonguyen7898 Год назад

    I did the same as you but I can't get the icon? Can anyone explain it to me?

  • @suaybkardas948
    @suaybkardas948 8 месяцев назад

    Even though I am a member of the geoDB site and use my own "apikey", I get a 403 (forbidden) error when fetching data from geoDB. I also tried with fetch and axios. Do you know how can i fix that problem?

    • @adamzdan-michajlowicz2528
      @adamzdan-michajlowicz2528 4 месяца назад +2

      Hello, I had this same issue. Its because we are supposed to click a button on the page with the copy and paste code that says "Subscribe to Test". 403 means we are authenticated (aka logged in) but havent yet got the rights to that particular API (ie havent subscibed). I hope this helps

  • @d3dr
    @d3dr 9 месяцев назад +1

    The slice(0, 7) data from list shows not daily forecast but hourly! So you get forecast just for 1 day not for a whole week!

    • @dohkopaul5166
      @dohkopaul5166 9 месяцев назад

      geocities api was change so what do you did to use api from geocities ? axios?

  • @omgitsjesus007
    @omgitsjesus007 Год назад

    Why my temp property coming in at like "226"?

  • @Culurgione
    @Culurgione Год назад +1

    Thanks for putting this together. I am one hour in but the entire app has gone blank. Not sure why

  • @kekoHere0610
    @kekoHere0610 5 месяцев назад +1

    This tutorial did not work for me. Too many errors keep popping up. The search bar is not working right. THe dropdown keeps switching up between no option and loading.

  • @mohammedismail6872
    @mohammedismail6872 Год назад

    can we do this in ubuntu ?

  • @vaibhavbhardwaj.0762
    @vaibhavbhardwaj.0762 Год назад

    The forecast isn't returning the daily forecast instead is returning hourly forecast. Anyone knows what to do ?

  • @haripriyaveluchamy9449
    @haripriyaveluchamy9449 Год назад

    at first the asyncpaginate bot shows any search bar what is the mistake

  • @tsukuyomi1485
    @tsukuyomi1485 Год назад +1

    Tried to do this and the first 20 minutes with coding along and checking making sure i have the same code it still doesn't work. nothing comes up on the search and i tried to inspect the console it doesnt print the data. And since nothing work i just grab the code from the github and tried to copy the same codes , using my api keys of course but still, when i search it doesnt do anything. Nothing is working.

    • @aguer007
      @aguer007 Год назад

      add return before fetch

  • @tejalbhavsar4610
    @tejalbhavsar4610 Год назад +1

    not able to run that api and get the response

  • @JBurky15
    @JBurky15 Год назад +1

    Tried to follow along with this to get some extra react practice in and it just will not work for me. Once I completed the search component I keep getting an error where it flicks between searching and no options over and over until I click off the search bar. I even downloaded your code and it was doing the same thing to me, no clue why this would happen. Thanks for the tutorial anyway.

    • @biancamagali100
      @biancamagali100 Год назад

      hey I have the same problem :( did you fix it?

    • @cheshtaarora5499
      @cheshtaarora5499 Год назад

      @@biancamagali100 i m facing the same issue how to fix it ?

    • @ChamiLusi
      @ChamiLusi Год назад

      same! and my widget dissapeared too