Discover the power of React error boundaries: A must-watch tutorial | React Tutorial

Поделиться
HTML-код
  • Опубликовано: 25 ноя 2024

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

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

    Amazing Explanation

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

    Thank you for sharing your valuable knowledge and inspiring content to us💕🙏

  • @aarora6710
    @aarora6710 6 месяцев назад

    Hi Sofia i have done the same my errors are not getting caught. Can it be some issue with thw latest version of react ?

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

    Nice explanation 👌

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

    Nicely explained.🙏

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

    Lets say if App component is wrapped by Error boundary,,,then does the errors in the child of App are also handled or should we wrap its child again under error boundary?

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

      no, error boundaries will take care of the children as well, no need to wrap it to every child

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

    How about functional component ? Could you please make vdo on error boundaries in functional component please ?

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

      You can just wrap functional components in these error boundaries but unfortunately the methods for error boundaries are only supported in class based components

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

    I was enjoying your previous videos a lot since I'm currently preparing for interviews and using your old videos for reference.
    With new videos,
    1 small problem...
    I am from Tamil Nadu and I don't understand any Hindi words you're speaking 😢

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

    Is it mandatory to create error boundry in class based component only ?

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

      The methods that used in error boundaries are supported by class based components only

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

    Nice ❤

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

    Hi Sofia... love to learn from you. could you please add english subtitles 😢

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

      It’s been way more time taking than my expectations, let me see what i can do to add it fast

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

    Hello ma'am can please make video on this. topic and ${``} deeply explain where and how uses

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

    Done !

  • @akhileshchauhan9561
    @akhileshchauhan9561 7 месяцев назад

    Mam ReactJs me koe components import hone par man lo kahi spelling me wrong ho gaya error underline me aaye ye "Extension kaise add kare VS Code me " plz reply me mam

    • @SofiaGoyal
      @SofiaGoyal  7 месяцев назад

      U can use tsconfig to specify typescript configurations and also eslint to check lint issues

    • @akhileshchauhan9561
      @akhileshchauhan9561 7 месяцев назад

      @@SofiaGoyal Thanks mam

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

    Hello Sofia ma'am you are great teacher specialy you can on front of screen and explain me
    Ma'am can you please make full react tutorial is topic wise deep explanation with project
    It my request ma'am

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

      Thanks, good idea, let me put some more videos related to react basics, then we can do a project

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

    why isnt there a functional component for error boundaries

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

      because the methods getDerivedStateFromError and componentDidCatch are lifecycle methods which are not supported in functional components

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

    Thats Suspense api

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

      Suspense api is used to provide fallback until an async call is finished, like adding a spinner until you get data, understand the difference.

  • @mr.bjajsinghaniya2872
    @mr.bjajsinghaniya2872 9 месяцев назад

    Didi code to dedo

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

    Nice explanation 👍