React Context API Tutorial For Beginners | useContext Hook | React State Management With Context API

Поділитися
Вставка
  • Опубліковано 25 сер 2024
  • In this video we will understand what is Context API in React JS and how we can implement it in our project. We will also understand and follow some of the best practices while working with Context API in our project so that we can write clean, easy and maintainable code.
    We will make use of useContext react hook and create a custom react hook to consume the values and see how it helps in solving the problem of props drilling and make it easy to management state of application and passing data between components.
    ⭐️Github link for Reference⭐️
    github.com/dma...
    ⭐️ Support my channel⭐️
    www.buymeacoff...
    🔥 Unacademy 👇
    Use my code "dipesh01" to get 10% discount
    You get all of this and much more for a nominal fee of Rs999/- for the entire year and with my code you get this for Rs 899!
    Career as a Developer: unacademy.com/...
    Project Review: bit.ly/Unacade..."
    🔗 Social Medias 🔗
    Twitter: / imdmalvia
    Facebook: / programmingwithdipesh
    Instagram: / dipeshmalvia
    LinkedIn: / dmalvia
    ⭐️ Hashtags ⭐️
    #react #contextapi #beginners #tutorial
    Disclaimer:
    It doesn't feel good to have a disclaimer in every video but this is how the world is right now.
    All videos are for educational purpose and use them wisely. Any video may have a slight mistake, please take decisions based on your research. This video is not forcing anything on you.

КОМЕНТАРІ • 55

  • @blavikencz3694
    @blavikencz3694 2 роки тому +3

    It was hard to find a good and simple tutorial on Context API. Your video helped me. Thank you.

  • @kothaib6949
    @kothaib6949 3 роки тому +3

    Your explanations are crystal clear!!! It provides in-depth insight of concepts. Please continue and provide more videos.

    • @DipeshMalvia
      @DipeshMalvia  3 роки тому +2

      I will please support me with buying a coffee for me and get exclusive content. Keep watching!

  • @arjunsaili1458
    @arjunsaili1458 2 роки тому +3

    vid starts at 4:53

  • @skverskk
    @skverskk 2 роки тому +2

    Great tutorial. I was able to understand everything as it was presented in an easy to follow tutorial

  • @philliplima4999
    @philliplima4999 2 роки тому

    Thanks, I finally understood useContext.

  • @marcossaucedo7123
    @marcossaucedo7123 2 роки тому +1

    Thank you brother! Most up to date channel with this stuff. Liked and Subbed.

  • @acm.marques
    @acm.marques Рік тому +1

    I found out by chance your channel and I liked the video about Context Api I learned a lot.
    Thank you so much Dipesh

  • @imkir4n
    @imkir4n 3 роки тому +1

    Waiting for interview oriented video 🙌

  • @arefinite
    @arefinite 2 роки тому +1

    This was very helpful. Thanks for the quick and easy explaination.

  • @robiparvez
    @robiparvez 2 роки тому +1

    start from 4:54...thank you.

  • @gopinathkrm58
    @gopinathkrm58 Рік тому

    Good explanation

  • @debasishrakshit538
    @debasishrakshit538 3 роки тому +2

    Nice intro Dipesh, do you have any video related to JWT based login functionality in react app? I guess there we can use such context api to maintain the session

  • @noorb374
    @noorb374 2 роки тому

    Great video ... please make more videos like that, your videos helps us alot ... sir now make videos for upper level means(not for only beginners )

  • @gkdlightkarthick6954
    @gkdlightkarthick6954 3 роки тому +2

    Please make video playlist on material UI concepts with react .

    • @DipeshMalvia
      @DipeshMalvia  2 роки тому

      Yes, already added in my todo list.

  • @DeepakGupta-pz4fx
    @DeepakGupta-pz4fx 3 роки тому +1

    Please make on video React unit testing crash course

  • @noorb374
    @noorb374 Рік тому

    sir please make one video of using useReducer and useContext hook together in application...

  • @akhileshmishra5559
    @akhileshmishra5559 Рік тому

    Why did you create user in usestate when you defined it earlier

  • @practicalcoder4372
    @practicalcoder4372 2 роки тому +1

    Awesome🔥🔥🔥🔥

  • @piacademy1991
    @piacademy1991 3 роки тому +1

    What happens when page is refreshed?

  • @keerthanamalisetty7487
    @keerthanamalisetty7487 2 роки тому

    Please make a video on theming / customizing material UI componets

  • @MicahBala
    @MicahBala 3 роки тому

    Thanks for the educative video

  • @knowledgepower5192
    @knowledgepower5192 2 роки тому

    Great

  • @easinwebpro
    @easinwebpro 3 роки тому

    Awesome ❤️

  • @dannonabiola8709
    @dannonabiola8709 Рік тому +1

    Does this context API carry out user authentication?

    • @DipeshMalvia
      @DipeshMalvia  Рік тому

      You can check this video for content api + firebase authentication - ua-cam.com/video/6kgitEWTxac/v-deo.html

  • @user-el7qm7pb3h
    @user-el7qm7pb3h 3 роки тому +1

    👌👌👌👌👌

  • @hemendrasingh560
    @hemendrasingh560 3 роки тому

    Hlo sir I am following gour tutorial but still confused how to use it in mern project please make a video where using nodejs for api when user logged in we shows their name and login page hide and logout page shows after logout name of user also clear and login page shows....
    I search the whole youtube but couldn't find a video....Please make it as soon as possible I am video for your video

  • @theseanmodd
    @theseanmodd 3 роки тому +1

    Isn't this the old version of react-hook-forms?

  • @hemendrasingh560
    @hemendrasingh560 3 роки тому +1

    Hlo brother please help after page refresh username that shown here is disappeared

    • @DipeshMalvia
      @DipeshMalvia  2 роки тому +1

      Yes, because we are storing the username anywhere so on refresh it will disappear. you can do one thing you can store the username in local storage so that you can retrieve it back on page refresh.

    • @hemendrasingh560
      @hemendrasingh560 2 роки тому +1

      Will you please send me a code....

    • @DipeshMalvia
      @DipeshMalvia  2 роки тому +2

      Don't have code handy but I am creating a new tutorial with React + Firebase for authentication and we will use Context API

    • @hemendrasingh560
      @hemendrasingh560 2 роки тому

      @@DipeshMalvia thank you brother waiting for the video

  • @zulfiqar7967
    @zulfiqar7967 2 роки тому

    Actually , why we need to use context api., ? These can be accessible using props itself right.??

    • @rmt0858
      @rmt0858 2 роки тому

      Prop drilling is unnecessary, when all other child components are not using that prop

  • @sharonfrancis663
    @sharonfrancis663 2 роки тому +1

    Nice

  • @pradeepkumawat1697
    @pradeepkumawat1697 2 роки тому

    google CEO sunder pichai