React JS for beginners: Tutorial 10 - Fetching data from an API (part 2)

Поделиться
HTML-код
  • Опубликовано: 10 апр 2020
  • In this video we'll add a CSS loader, and an error message to our HTTP request.
    Download the code
    github.com/QuentinWatt/React-...
    Follow me on social media:
    Twitter: @QuentinWatt
    Facebook: @quentinwatt
    Instagram: @quentinwatt
    Looking for a job? Try one of these referral links.
    -----
    Europe: (London, Germany, The Netherlands, Barcelona & more)
    app.honeypot.io/ref/mDJbyi5GM2...
    South Africa: (Cape Town, Johannesburg & Pretoria)
    www.offerzen.com/z/V0ImHT
    ---
    Subscribe:
    / quentinwatt
    I also make videos here:
    / quentin
    Donate with Paypal:
    www.paypal.com/cgi-bin/webscr...
    #LearnReact #FreeCourse #ReactForBeginners

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

  • @nagasai7709
    @nagasai7709 2 года назад

    Excellent teaching 👏

  • @daveisdead
    @daveisdead 3 года назад

    this is so underrated. Your teaching style is great and it is very concise

  • @msartini
    @msartini 3 года назад +1

    Very cool class, you helped me a lot

  • @mriganksingh7586
    @mriganksingh7586 4 года назад

    awesome content ❤

  • @rathanatheang3298
    @rathanatheang3298 4 года назад

    Thank You so much Plz make more video

  • @NazmulHossain
    @NazmulHossain 4 года назад

    Awesome tutorial. waiting for next video :) Thanks

    • @QuentinWatt
      @QuentinWatt  4 года назад +1

      2 more have been uploaded :)
      They are the last 2 for this beginner series. All 12 episodes basically work out to a 2 hour crash course.

    • @NazmulHossain
      @NazmulHossain 4 года назад

      @@QuentinWatt Thanks.Can we accept any advance tutorial like redux ?

    • @QuentinWatt
      @QuentinWatt  4 года назад +1

      Yes. I have to get around to making that type of content.

    • @NazmulHossain
      @NazmulHossain 4 года назад

      @@QuentinWatt Thanks :)

  • @kashmirtechtv2948
    @kashmirtechtv2948 2 года назад

    Do create more videos. ❤️❤️

  • @NathanBudd
    @NathanBudd 4 года назад

    Would you not be better off having multiple states, eg { loaded, setLoaded } rather than putting them all in the product state?

    • @QuentinWatt
      @QuentinWatt  4 года назад +1

      That’s another way to do it, but they all need to be set at the same time.
      It should all tie up by video 12. We’ll return that whole object from a custom hook.

  • @mazharulislam214
    @mazharulislam214 3 года назад

    in case of an API that has" api key " how to write the code? Can someone help me with this? I am starting on react and cannot figure out how to do it in react. Thanks in advance.

  • @kashmirtechtv2948
    @kashmirtechtv2948 2 года назад

    But shouldn't we show some data instead of Loading animation? The user may need only text info, while reading he can check images or fully loaded page. What's your opinion on this?

    • @QuentinWatt
      @QuentinWatt  2 года назад

      You need to fetch the data to show it. Images or text will take time to fetch unless you already have them.
      This is why there is a loading animation. To indicate to the user that we are fetching new data.

  • @Polacekad
    @Polacekad 3 года назад

    Where did you get the loader from? Great Video :)

    • @QuentinWatt
      @QuentinWatt  3 года назад

      Free CSS loaders at loaders.io

  • @fakhrirafiki9020
    @fakhrirafiki9020 3 года назад

    why don't you use fetch instead of Axios?

  • @ayushisaini5311
    @ayushisaini5311 4 года назад +1

    sir please make one project using react.🙇‍♀️

    • @QuentinWatt
      @QuentinWatt  4 года назад +1

      This is a real project.
      The code for this series contains everything you need for a web app. This is exactly what you’d be expected to do at a job.

    • @QuentinWatt
      @QuentinWatt  4 года назад +1

      Follow from tutorial 1. We’ve been building a project this whole time.

    • @ayushisaini5311
      @ayushisaini5311 4 года назад

      @@QuentinWatt i am following from start i learned html and css from your tutorial and also recommend others also who are willing to be web developer.🙇‍♀️