React Js How to REFRESH a Component | Best Practice

Поделиться
HTML-код
  • Опубликовано: 16 фев 2022
  • In this video, I'll show you how to refresh a component in react js. There are several ways to refresh a component in react js but what is the best approach to refresh a component? I have a real scenario and will show you what solutions we have and what is the best one...
  • НаукаНаука

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

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

    Thank you very much man! That helped me so much! Great video, really useful. Thanks again!

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

    just the video i was looking for XD thanks buddy

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

    Cheers! you helped 71K beginners who try to do their self-learn project 👋👋💖💖

  • @haha-eg8fj
    @haha-eg8fj Год назад

    Thanks I learned some new technique today.

  • @Ahmedahmed-qg5ep
    @Ahmedahmed-qg5ep Год назад

    Thank you so much. It saves lots of time.

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

    Finally i find a video thanks its really helpful ❤

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

    Thanks for this video, it really help me, new sub!

  • @Vimal108_-
    @Vimal108_- Год назад

    Youre a life saver!

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

    Thank you this is a great video, really help me.

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

    Super super heplful, thanks a lot men!!!!! you're a hero!

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

    Thanks alot, u solved my problem ❤

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

    Your really talented it's fabulous explanation thank you so much😊🙏🏼

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

    thank you sir, you've got a new subscriber 😊

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

    Thank you very much.Nice vid.

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

    Thanks so much!

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

    Doubt: I have a list of users and after clicking on user line i will be redirected to the route of user details component. On that component there is a delete button. And after deletion i am navigating back to users list. But sometimes its not getting updated. So my question is how to refresh a component from another component. Meaning how could i notify my list to refresh on click of delete button?

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

    You saved me, bro

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

    Thanks!!

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

    Hi! Nice vid. Is there a repository for this video?

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

    Thank you

  • @rushikeshjadhav7748
    @rushikeshjadhav7748 10 месяцев назад

    Thankyou sir 🙏🙏

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

    Hi sir how to refresh the table data with button please do the videos on the ways of refreshing concepts

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

    i had a similar problem, i had an element with different url, i just had to add on the useEffect the url parameter, so every time it changes it refreshes the page. I hope this helps someone

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

    But what's solution if i map array of users, and post new one into array on server. How can i update old array on the page without refreshing page?

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

    Can you make one video on auto refresh ?

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

    I incremented the like total by 1

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

    this solution happen if you add new data. how about mutate an old data inside the array state?

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

    thanks

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

    Ewolla ba in lahheh Iranit

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

    How to use this same principle when we delete element via api ?

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

    my components are not refreshing on server while i am changing the link .what is reason behind it?

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

    can i do this using class component ?

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

      Yes, you can use the setState method to update the state.

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

    When you say refresh, it's actually misleading. You should say "re-render" which is a main concept in React. Plus, you're not suppose to forceUpdate unless you're doing something wrong with React or it's a very typical situation.

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

    Where R U From?

    • @ReactWithMasoud
      @ReactWithMasoud  2 года назад +1

      I am coming from where are you 😀

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

      @@ReactWithMasoud I am coming from where you are.

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

    Didnt solve my problem