How to Fetch and Display data from API in React JS with Modern Fetch API

Поделиться
HTML-код
  • Опубликовано: 30 янв 2023
  • #fetchData #api #reactjs
    Learn How to fetch and Display data from API in React JS with Modern Fetch API. First, we will get data in useEffect hook from an API through the Fetch method in React JS and then display it on the browser in a table.
  • НаукаНаука

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

  • @melkzedekwafula5172
    @melkzedekwafula5172 23 дня назад +1

    short and to the point thanks

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

    Thanks man, for this great example!

  • @marckbashaw2792
    @marckbashaw2792 2 месяца назад

    Code With Yousaf is the best! Thank you good sir!!!

  • @Projects_With_Source_Code
    @Projects_With_Source_Code 2 месяца назад +1

    Bhai ye bolte vkt vocals me extra ki style marna jruri hai kya ??

  • @mageshmagi6167
    @mageshmagi6167 Месяц назад

    Useffect or promise which is best in getting api

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

    can you explain what's the value in List and index parameter ?

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

      list is the record that we get.
      index is the unique key which is used to identify which items have changed, are added, or are removed.

  • @atifhassan8098
    @atifhassan8098 8 месяцев назад +1

    if i want to fetch the data from my local API same i have to do?

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

      For the local API run server then paste the link. same

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

    Sir, whats the best ? axios or like this ?

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

      axios is the best one to use for http request and response
      use can use javascript fetch method also but the axios is superb

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

    Axios is better way for fetch api

  • @himanshu_poojaryy
    @himanshu_poojaryy 2 месяца назад

    please use better mic , good content anyways

  • @bhavamsingh8092
    @bhavamsingh8092 2 дня назад +1

    Sir please is tutorial ko hindi me kr dijiye na