Redux VS Context Api | Understand All The Differences in 10 minutes

Поділитися
Вставка
  • Опубліковано 18 гру 2024

КОМЕНТАРІ •

  • @SofiaGoyal
    @SofiaGoyal  23 дні тому

    For the re-render issue with context api. I have explained here. Do checkout.
    ua-cam.com/users/shorts2oAcV7EZa7s?feature=share
    If you like my work you can support me and buy me a coffee at:
    buy.stripe.com/14k2aI2if8apadydQQ

  • @sonusingh831
    @sonusingh831 6 місяців тому +17

    One significant difference between the Context API and Redux is in their optimization behavior. With the Context API, updating a state causes the entire tree structure to re-render, leading to potential performance issues. In contrast, Redux optimizes re-rendering by only updating the specific component that uses the Redux state. Therefore, Redux can be considered more optimized compared to the Context API.

    • @SofiaGoyal
      @SofiaGoyal  6 місяців тому +1

      Thanks for highlighting it...

    • @ravidubey6817
      @ravidubey6817 5 місяців тому

      This is a most important point.

    • @samridhshubham8109
      @samridhshubham8109 2 місяці тому +1

      thanks bud, fr this is the most common impressive point tbh

    • @aniruddhashevle
      @aniruddhashevle 2 дні тому +1

      And hence one of the better use cases to use Context APIs for theming compared to Redux.

  • @abhinavyadav9389
    @abhinavyadav9389 6 місяців тому +3

    you gained a new subscriber. thanks for this video, it clarified many doubts about these two. before this video, I only knew that they are both state management techniques one is already integrated into React, and the other can be obtained from the Redux library. Now, I have a clear idea of how they differ

    • @SofiaGoyal
      @SofiaGoyal  6 місяців тому +1

      Thanks for subscribing, the purpose of making this video was to clarify this as once i was also confused between the differences. It makes me happy to see that people are actually learning from this. 🙂

  • @yasirrazzaq2036
    @yasirrazzaq2036 6 місяців тому +1

    From Pakistan , Thanks mam your wonderful videos . I have learnt a lot from your videos, Thanks again

  • @SarathChandran96
    @SarathChandran96 5 місяців тому

    Very informative .Thanks . You shared all valid points. I had an argument with my senior in this topic . He was saying that we can use context instead of redux

    • @SofiaGoyal
      @SofiaGoyal  5 місяців тому

      You are welcome, not sure about your senior may be he was saying it for a specific project

    • @SarathChandran96
      @SarathChandran96 5 місяців тому

      @@SofiaGoyal what category are you using for these videos. I am also uploading programming videos. please reply .
      "Education "? , "How to and style" ? , "Science and technology" ?

  • @Azeem_Idrisi
    @Azeem_Idrisi 3 місяці тому

    Thanks ma’am!
    This was a very clear and detailed video about the two. I think every fresher must also know about the difference since we are the most confused people when trying out new things.
    Great work 💯 Subscribed.

  • @itsMohak
    @itsMohak 6 місяців тому

    Always very informative. You are great

  • @chandraprakash-w7w
    @chandraprakash-w7w 4 місяці тому

    Nice Presentation 👌. You gained one new subscriber here.
    One point more can be added here : there optimization behavior.
    Can you please make a detail video here on topic:
    * How you start your social platform journey , specially : you Tube.
    * How to create you tube learning content from scratch.
    * What is the benefit of post in social platform specially in LinkedIn.

  • @kashmirtechtv2948
    @kashmirtechtv2948 2 місяці тому

    Context bhi to centralized store ki trha e hua??

  • @paritoshkumar5107
    @paritoshkumar5107 3 місяці тому

    Thank you mam for explaining the topic in depth and easy way✨

  • @codingwave56
    @codingwave56 6 місяців тому +4

    there should be not comparison between Redux Toolkit and Context API their use cases entirely different just bcz they prevent Prop Drilling that's why we are comparing otherwise Redux is the state management library and Context API is dependency injection mechanism.

  • @CodingSphere
    @CodingSphere 6 місяців тому

    thank you Sofia for wonderful explanation and practical examples. Please keep posting react videos.

  • @kashmirtechtv2948
    @kashmirtechtv2948 2 місяці тому

    To kea global states context m ni use hotin??? Context m bhi to same e kaam hora hota... Poori app m kahin bhi states ko use kr skty

  • @AbdulSaboor-pp5kc
    @AbdulSaboor-pp5kc 6 місяців тому

    wow, explain both topics easy way.

  • @rajkumar-rz1fr
    @rajkumar-rz1fr Місяць тому

    hello didi i am making an ecommerce application uske backend api se data aata hai. but frontend me mujhe bohot bar usefetch and fetch krna pad rha hai data ko. For example mene product page open kra usme i add one product to wishlist post call se product add ho gya but i the header (diffrent component i am importing in product page) usme real time per so nhi ho rha that new product is added to wihslist. Usko mujhe reload krna pd rhanhai then it show new product added and number increase in header. Same in Cart page. Iske liye Context Api thik rahegga kiya ? Yha redux padu ?

  • @abhishekcode
    @abhishekcode 6 місяців тому

    Thanks for explaining in very easy way👍

  • @sam112291
    @sam112291 6 місяців тому +1

    Very good explanation ! Thanks

  • @govindsen2230
    @govindsen2230 6 місяців тому

    Make a roadmap of "Questions asked for freshers in interview". BTW video was awesome.

  • @Manoj_Jadhav.12
    @Manoj_Jadhav.12 6 місяців тому

    You got a new sub , thanks for beautiful explanation , gonna watch your other videos

  • @madhusudananand6641
    @madhusudananand6641 3 місяці тому

    Hey can't we perform state management using context?.

  • @guptashankars1
    @guptashankars1 6 місяців тому

    Thank you so much for the video and the clarification. Bless you

  • @sushilingole8448
    @sushilingole8448 6 місяців тому

    Thank you for such a wonderful explanation.

  • @MuhammadLuqmankhanoffical
    @MuhammadLuqmankhanoffical 5 місяців тому

    Very interesting and informative video

  • @ravidubey6817
    @ravidubey6817 5 місяців тому

    Video was great , but I did not get last thing for using Context in your project? And when can Context API and Redux be used together? Use cases for Context API rather than Redux Please share a video on this if possible. And Redux Toolkit is used now so it has less boilerplate code, so please make video on Redux Toolkit vs Context API. Thank you.

  • @manifestcode2228
    @manifestcode2228 6 місяців тому

    good video, but should i use Redux as a fresher front end developer ??

    • @SofiaGoyal
      @SofiaGoyal  6 місяців тому

      Yeah u can, the more u know the better it is, it is more related to the project requirement but if you wanna learn it as a fresher then please go ahead

  • @wade_wilson6_9
    @wade_wilson6_9 6 місяців тому

    Hi ma'am I have been watching your javascript playlist which is very good and learned a lot. But It's my request please explain the topics in depth. The Interviewer asks many questions from the depth level and asks many cross questions to check if the candidate has depth knowledge or not, for the 1-year experienced person (beginner also) it is very challenging if he does not have depth knowledge. It may increase your video timing but the content will be more valuable. I hope You will take it as a positive feedback..

    • @SofiaGoyal
      @SofiaGoyal  6 місяців тому

      If you check my videos they are already longer than other youtubers making the videos on same topics.
      Also in general for long videos the watch time is very less, often people don’t even click on videos which have very long time duration. So ideally the videos should be 10-15 mins long but still my usual videos are more than 20 mins because i want to explain everything I know. I hope u understand how it works now. 😊

  • @kidscartoons-u12
    @kidscartoons-u12 5 місяців тому

    what is dependency injection mechanism

  • @gajanankanekar9118
    @gajanankanekar9118 21 день тому

    Thank you.

  • @sonusingh831
    @sonusingh831 6 місяців тому

    Very well explained

  • @ayushnigam9424
    @ayushnigam9424 5 місяців тому

    Thank you!!

  • @abhishekcode
    @abhishekcode 6 місяців тому

    Mam please come with MERN full stack project..

  • @X5kc
    @X5kc 6 місяців тому

    Greate🎉

  • @pratikdas9469
    @pratikdas9469 6 місяців тому

    awesome video

  • @priyadarshi5730
    @priyadarshi5730 5 місяців тому

    ❤❤❤

  • @pratikdas9469
    @pratikdas9469 6 місяців тому

    thanks maam

  • @arpitham8104
    @arpitham8104 6 місяців тому

    If it’s possible can you please explain the concept in English please 🙏

    • @SofiaGoyal
      @SofiaGoyal  6 місяців тому +1

      There are English subtitles available for this.

    • @arpitham8104
      @arpitham8104 6 місяців тому +1

      @@SofiaGoyal I thought its some auto generated subtitles, later I observed that those are actually generic titles, watched it 4 to 5 times to understand. Thanks you for the response ♥

    • @SofiaGoyal
      @SofiaGoyal  5 місяців тому +1

      Sorry for the inconvenience, currently i can only afford some free ai subtitles, will try to make it better with the channel growth

  • @ravindrakumartanwar2617
    @ravindrakumartanwar2617 6 місяців тому

    may i ask one question

  • @rishiraj2548
    @rishiraj2548 6 місяців тому

    So much of advertising in the beginning…😢

    • @SofiaGoyal
      @SofiaGoyal  6 місяців тому

      What advertising? I don’t advertise anything

  • @usamarajpoot7403
    @usamarajpoot7403 3 місяці тому

    interviewer ko ktya khna h uski fikr mat kro,,, tum sahi sa smjhao to sahi ,, bar bar interview ma chli jati,,, ma difference maloom krny aya huu, interview ki prep krny nhi

    • @SofiaGoyal
      @SofiaGoyal  3 місяці тому

      U need to keep in mind the video is not just for you, there are other people who want to know what to say in interviews

  • @Spider-Man_67
    @Spider-Man_67 6 місяців тому

    Nice explanation, thank you for the new points.

    • @SofiaGoyal
      @SofiaGoyal  6 місяців тому +1

      Glad it was helpful!