useContext hook: Using React Context API | Complete React Course in Hindi #58

Поділитися
Вставка
  • Опубліковано 11 жов 2024
  • useContext hook accepts a context object (the value returned from React.createContext) and returns the current context value for that context. This video talks about the same in great detail with code example!
    All the source code and other material will be uploaded on codewithharry.com as and when available!
    ►Check out my English channel here: / @programmingwithharry
    ►Instagram: codewithharry
    python, C, C++, Java, JavaScript and Other Cheatsheets [++]:
    Playlist: • Coding CheatSheets 🧾 b...
    ►Learn in One Video[++]:
    Python[15 Hr] - • Python Tutorial For Be...
    Python Advance[3.5 Hr] - • Python Programming Cou...
    Python[1 Hr] - • Learn Python In Hindi ...
    Python[2 Hr] - • Python Tutorial In Hin...
    Python[15 Min] - • 15 Minute Python Tutor...
    JavaScript[1 Hr] - • JavaScript Tutorial
    C[1.3 Hr]- • C Programming Tutorial...
    php[1 Hr] - • Learn Php In One Video...
    php[2.3 Hr] - • Php Tutorial for Begin...
    php[Project]- • Login And Registration...
    HTML[30 Min] - • HTML 5 Tutorial For Be...
    CSS[8.5 Hr] - • CSS Tutorial In Hindi ...
    CSS[1.4 Hr] - • CSS 3 Tutorial For Beg...
    Wordpress[3.2 Hr] - • How To Make a WordPres...
    Angular[2 Hr] - • Angular Tutorial in Hindi
    Java[2.3 Hr] - • Java tutorial in hindi 🔥
    Web Scraping[1 Hr] - • Web Scraping Tutorial ...
    MongoDB[2 Hr] - • MongoDb Tutorial For B...
    Numpy[1 Hr] - • Numpy Tutorial in Hindi
    Android Dev[12 Hr]- • Android Development Tu...
    Linux[1 Hr] - • Linux Tutorial For Beg...
    JQuery[1.1 Hr] - • jQuery Tutorial For Be...
    Git and GitHub[1.1 Hr] - • Git & GitHub Tutorial ...
    ►Complete course [playlist]:
    React - • React Js Tutorials in ...
    Python- • Python Tutorials For A...
    OOP Python- • Object Oriented Progra...
    Java - • Java Tutorials For Beg...
    JavaScript- • JavaScript Tutorials I...
    PHP- • PHP Tutorials in Hindi
    C- • C Language Tutorials I...
    C++- • C++ Tutorials In Hindi
    Git & GitHub- • Git and GitHub Tutoria...
    Android Dev- • Android Development Tu...
    Python GUI- • Python GUI: Tkinter Tu...
    Web Development- • Web Development Tutori...
    Python Django - • Python Django Tutorial...
    Projects Using HTML, CSS & Javascript- • Projects Using HTML, C...
    Data Structure and Algo - • Data Structures and Al...
    Python Practice programs - • Python Practice Progra...
    Basic Python Programs- • [Hindi] Basic Python P...
    General Python Errors- • [Solved] General Pytho...
    PHP chatroom- • Realtime PHP Chatroom ...
    Follow Me On Social Media
    ►Website (created using Django Rest & Angular) - www.codewithha...
    ►Facebook - / codewithharry
    ►Instagram - / codewithharry
    Twitter - / haris_is_here
    Comment "#HarryBhai" if you read this 😉😉

КОМЕНТАРІ • 328

  • @01utpalraj95
    @01utpalraj95 Рік тому +30

    guys this course is really a gem . at some point of time you will feel to quit but plz plz plz donot quit because you cannot find any better course than this . try to practice 2-3 time then you will feel motivated.

    • @adityasrivastav5260
      @adityasrivastav5260 Рік тому +2

      bhai tumhara router me context ko wrap krke output mil rha kya?? Mera nhi aa rha output please help!!
      😐😐😐

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

      ​@@adityasrivastav5260 props ko pass krny ka tarika update ho chuka hai. Ab (props.children) use nahi hota. ({children}) kr k ap props ko pass kro gy.

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

      @@khushbakht4557 Failed to compile.
      Module not found: Error: Cannot find file: 'Notestate.js' does not match the corresponding name on disk: '.\src\Context
      otes\context'.
      ERROR in ./src/App.js 10:0-50
      Module not found: Error: Cannot find file: 'Notestate.js' does not match the corresponding name on disk: '.\src\Context
      otes\context'.
      ERROR in ./src/Components/About.js 6:0-55
      Module not found: Error: Cannot find file: 'noteContext.js' does not match the corresponding name on disk: '.\src\Context
      otes\context'.
      webpack compiled with 2 errors
      could you please tell where i did mistake my code is not working

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

      @@rvfitness9073 yes you're not writing spellings correctly so it can't find module. Jis name se module banaya hai, same wohi spellings use kro. For example context ka c small hai ya capital hai, be careful of these things.

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

      @@rvfitness9073 let me know if you still get errors.

  • @hardiksingh5626
    @hardiksingh5626 Рік тому +5

    had a doubt in this topic and was stuck for two days,searched every where but couldn't clear it . At last i opened the video and the topic is crystal clear in 10mins . Hatsoff !!!!

  • @dindahaadecoaching
    @dindahaadecoaching 3 роки тому +8

    "Though you type in black and white, you colour up my life"
    Huge respect to you Harry Bhai. Happy Teacher's Day. ☺🙌🏻🤗. Always stay blessed♥😘😘

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

    The only ReactContext API Video you need to watch: ua-cam.com/video/73Tz6qTgNuU/v-deo.html

  • @SushantBabar-u8o
    @SushantBabar-u8o 8 місяців тому +2

    watched 2 to 3 videos , but this video cleared all my doubts , thank you harry bhai

  • @VipinYadav-rp1iz
    @VipinYadav-rp1iz 9 місяців тому +1

    Best teacher..... Maine context api bahut jagah se try kiya... But last mein aapne clear kra diya ❤❤❤lots of love

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

    Really grate course People who never worked in React Js can start full time job or freelancer work after this . Grate bro

  • @jenilkunadiya6704
    @jenilkunadiya6704 3 роки тому +41

    Sirji iske baad please DBMS ka course sikhao uski bahut jarurat padti he 🥺♥️♥️

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

    Kaise itna easily itna sab kuch krte ho sir...hats off...

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

    You are the best education UA-camr I have ever seen❤❤

  • @tejaskumar4470
    @tejaskumar4470 3 роки тому +4

    Harry Bhai You are so Hardworker!!🔥
    You Deserves Millions of Subscribers 🔥😊

  • @muhammadjunaidbashir8873
    @muhammadjunaidbashir8873 Рік тому +2

    I am react native developer beginner, but I really fond this video useful even harry bro teaching on react. hats off great work keep it up

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

    Dear Harry bhai today I'm here just to thank you for your python and dhango playlist just because of your playlists I was able to crack the job interview and I'm really glad that I found your channel and thank you Harry bhai 😃😃

  • @gaurav.lahoti
    @gaurav.lahoti 3 роки тому +23

    Happy teacher's day harry sir. you are only my inspiration. I have learned many things from you. you showed me the right path in my life. sir, I hope you reach greater heights in your life, sir. Thank you sir once again.

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

    Harry bhai और carry bhai तुम दोनों को इस धरती पर हम जैसे लोगों का भला करने के लिए भेजा गया है💯💯 💕💕💕🙏🙏

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

      carry ne ky bhla kr diya tera time waste krne ke alawa

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

    Great! explanation thanks, puri 10 min me sab kuch samja diya huge thanks.

  • @rittwickbhabak7348
    @rittwickbhabak7348 2 роки тому +8

    This react js course is awesome. I have understood react context api. You made it very simple to understad.

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

    Bhai , main sirf iss video ke talash me aya tha,😅 aur pura react.js playlist khatam karke ja rha hu........the way you teach us the concept so easily, seriously I couldn't find anybody on UA-cam. ❤

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

    Your teaching is awesome, exceptionally fantastic

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

    Good tutorials, nice way of explanation for beginners. Free content :)
    Just 1 suggestion, jo topic k baare mai bta rhe ho jis video mai, focus on that only. Kyunki jo user sirf wo topic dekh k video click kiya hai wo sirf wo topic dekhna chata hai jldi se.
    Aapne or bhi chize btaye like folder structure starting mai e.t.c jbki main topic p hi focus krte to 15mins mai ho jaata.
    Yes beginners k liye baki chize important hai pr wo aap intro mai hi bta do sb course k. Hr video mai beech mai kuch na kuch offtopic se video lambi hoti hai. Or user fir dusre youtuber k video ka km time dekh k us p click krta hai

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

    17:58 bhut badi baat boli hai bhai ne.. guys bhai ke saath saath coding krni pdegi .

  • @tirthsondagar1646
    @tirthsondagar1646 3 місяці тому +1

    harry bhai congratulation aapne contex ko paida kiya haii🤣🤣 just for fun guyss
    this is a awesome react cource don't give up between this cource complete this and after you are perfect in react.......

  • @tehniatmirza1439
    @tehniatmirza1439 2 роки тому +8

    Harry bhai in easier words we can say that we can access the state & and the function which update the state of any component , globally , through context Api. Actually we can make a theme of states and their setter functions which can be used anywhere.

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

      bhai rahne de harry bhai ka hi sahi he, aapne to confuse kar diya tha kuch der ke liye

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

      yes , practically anything can be used as context !

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

    "Kasauti Zindagi ki " and "Balika Vadhu " this kind of examples make us feel more exciting and interesting while learning course from you❤

  • @navneetkumar5517
    @navneetkumar5517 Рік тому +7

    harry Bahi ye useContext july 2023 me nah chal raha
    Cannot read properties of undefined (reading 'name')
    TypeError: Cannot read properties of undefined (reading 'name')
    ye error mil rahi hai
    Mene bohot google kiya but koy correct solution nahi mila
    please help

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

      @@jahanzaib3523 nahi yaar
      Puri 2 hr tak try Kiya nahi hua
      Aaj fir se try karunga agar ho gaya to pakka bhej dunga aap ko

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

      @@navneetkumar5517 solve hua kya

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

      ​@@simcard2732 @navneetkumar5517
      Just try once
      import "./App.css";
      import NoteState from "./context/notes/NoteState";
      import About from "./components/About";
      import Home from "./components/Home";
      import Navbar from "./components/Navbar";
      import { Routes, Route } from "react-router-dom";
      function App() {
      return (









      );
      }
      export default App;

    • @sreedharreddyabbidi5374
      @sreedharreddyabbidi5374 4 місяці тому

      Even i got the same error. My problem was I used "noteState" with a lowercase letter throughout my files and changing it to uppercase "NoteState" worked.

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

      @@sreedharreddyabbidi5374 try this code
      NoteState.js
      import NoteContext from "./noteContext";
      const NoteState = (props) => {
      const state = {
      name: "Kush",
      class: "5b"
      };
      return (

      {props.children}

      );
      }
      export default NoteState;

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

    Best Content on this channel 😍

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

    Happy teachers day harry... I have learned a lot of things from you🥺

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

    Harry broo you are great. stay blessed forever and ever.

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

    Happy teacher's day Harry bhaiya 🎉
    Please DSA wala course complete krona 🥺

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

    harry bai tusi grate ho 🙆‍♂🙆‍♂🙆‍♂

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

    Happy teacher's day dill se Harry Bhaiya🥰🥰

  • @MohammadHuzaifa-u6s
    @MohammadHuzaifa-u6s 11 місяців тому

    HARRY YOU ARE ALWAYS A KING AND SOLUTION TO MY PROBLEMS

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

    I think this is india best youtube channel .... thanks a lot sir for this wonderful tutorial

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

    Bro I really appreciate you ! Hatsoff .👍 I always code with you, while you explain which gives me a understanding of how it all works !

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

    Best content on the UA-cam
    Lge rho Harry bhai ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️

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

    Sir you are God of coding

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

    This course is really amazing 💙

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

    You are one of the best teachers on youtube. Keep sharing your knowledge with us.

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

    Thanks
    Harry bhai

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

    very well explained! nice work good boy harry...

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

    Thank you sir for thisamazing explanation
    Everyone can understand easily with that tutorial. 🙌❣️✨

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

    Harry Bhai in Whole video: 😅
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai
    Thik hai

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

    You is my favrouite youtuber

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

    salute to you harry sir

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

    Thank you so much. It is giving me lot of confidence

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

    we will wrap the context around which components in app.js if we have multiple contexts available

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

    after adding all components in notestate my react page is white blank with no error in the console how to fix it ?

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

    Harry bhai I am always struggling in clearing interviews...uspe bhi koi videos banao....I have done lots of Amazing projects in my companies I worked in...but I always get rejected in interviews...ab to rejection se bhi darr lagne laga hai...I am really under valued when compared with my experience...At first log mujhe rakhna nahi chahte but jo rakh lete hain wo chhodna nahin chahte...

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

    Happy Teacher's day sir
    Sir 6 September ko wish kar rha huin 5th ko nhi sorry, mera mobile ka recharge khatam hogaya tha isliye nhi kar paya😞😞
    THANK YOU SIR APKE WAJAH SE M PYTHON SIKH PAYA HUIN , YOU ARE THE BEST TEACHER 👌

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

    happy teachers day harry sir

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

    Happy teacher's day sirji...♥️

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

    Happy Teacher's Day Sir.. ❤️❤️

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

    Happy Teacher's day sir.

  • @abidv.0.1
    @abidv.0.1 Рік тому

    Good Hoogya Diyaa 😇

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

    Happy Teachers'Day sir 💜

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

    Happy teacher's day sir

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

    bahot hi badiya broo

  • @debashisojha3499
    @debashisojha3499 3 роки тому +4

    A good teacher teaches from the heart like you sir.Happy Teacher's Day! 🙏🏻

  • @NikhilKumar-it7nm
    @NikhilKumar-it7nm 3 роки тому

    Happy teacher's day Harry sir

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

    Nice Video, Awesome MERN Stack Course.

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

    A very happy teacher's day harry bhaiya ! learnt a lot from you from coding to getting inspiration 🙏

  • @D007-k4q
    @D007-k4q 4 місяці тому

    good explanation

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

    Happy Teacher's Day 🥳🥳🥞🥞 $Harry bhai

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

    Happy teacher's day sir ❤️❤️❤️❤️

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

    Thank you so much harish bhai.

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

    Happy teacher's day harry bhai...

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

    Happy Teacher's day Harry sir

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

    How will plot point and figure chart in python language makes videos on its step by step function bcoz do u no I did search on you tube video at this but I never saw any video on its so you should make video on its

  • @abqureshi8627
    @abqureshi8627 11 місяців тому

    Thanks
    Much love for you

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

    thankyou so much harry bhai

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

    110% clear hogya contextAPI harry bhai 🤩🤩

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

    4:50 aapne export default noteContext likha h and import krte samay aapne N capital likha h NoteContext toh kaam kaise kar raha h?

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

    Happy Teachers Day Harry Bhai💖.
    Really ... You are building my future 😊

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

    Happy teacher's day Harry bhai

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

    Its amazing!!!

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

    Very good project sir

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

    sir when you are copying anything from the internet plz describe it in deep that we can understand in deep otherwise your videos are awesome what you have done its so amazing

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

    HAPPY TEACHERS DAY ❤️HARRY BHAI ❤️AAP DUNIYA K SUBSE BEST TEACHER HO , THANK U ❤️ FOR EVERYTHING BROTHER.

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

    HAPPY TEACHERS DAY SIR

  • @ADITYA-rl8ub
    @ADITYA-rl8ub 3 роки тому

    Happy teacher day bhaiya

  • @AbhishekSingh-cu1fe
    @AbhishekSingh-cu1fe 3 роки тому

    Happy Teachers Day Harry Bhai ❤. You are the best teacher in the world 👏👏. love u 1000000 times Harry Bhai!

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

    Happy teachers day sirji! Agar aap nahi hote to mai abhi bhi bas cracked games mobile pe daalkar apne aap ko technology expert samajh raha hota 😂

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

    Wonderful video

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

    Harry vai, kuch din se apke channel ka notification 🔔 nahi ah raha 😞😞😞, still never miss your any video, fir v samajh rahe ho na 😔 ♥

    • @Victor-ev3vu
      @Victor-ev3vu 3 роки тому +2

      Mera bhi nahi aa raha hai 🤔🤔

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

    Happy Teacher's day Harry bhai

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

    ☺☺❤again you take our heart

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

    This tutorial is helpful!!

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

    Happy Teacher's day harry bhai...

  • @GamingZone-jm4oq
    @GamingZone-jm4oq 3 роки тому

    Thank you very much sir

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

    Happy teacher's day harry bhai ❤️

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

    harry sir always rock

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

    Thank you

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

    शिक्षक दिवस की खुब खुब बधाई 🤗🙏💐

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

    Happy teacher's day bhai❤️✨

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

    #HarryBhai tu si great ho

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

    love u👍👍👍

  • @LoneWolf-ey1hq
    @LoneWolf-ey1hq Рік тому +1

    Do I really need to use `useContext` since I can do the same job with the help of a Redux store? If yes, can you please explain the differences and use cases?

  • @Rahulkumar-mt9kc
    @Rahulkumar-mt9kc 3 роки тому

    Happy teachers day Harry bhai

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

    Thank you ❤️

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

    Happy teachers day harray sir