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

  Рет қаралды 208,474

CodeWithHarry

CodeWithHarry

2 жыл бұрын

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.codewithharry.com
►Facebook - / codewithharry
►Instagram - / codewithharry
Twitter - / haris_is_here
Comment "#HarryBhai" if you read this 😉😉

Пікірлер: 321
@01utpalraj95
@01utpalraj95 Жыл бұрын
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 Жыл бұрын
bhai tumhara router me context ko wrap krke output mil rha kya?? Mera nhi aa rha output please help!! 😐😐😐
@khushbakht4557
@khushbakht4557 Жыл бұрын
​@@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 9 ай бұрын
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 !!!!
@sdass500
@sdass500 2 жыл бұрын
"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 жыл бұрын
The only ReactContext API Video you need to watch: kzbin.info/www/bejne/bWS3q2mnicyBq7c
@jenilkunadiya6704
@jenilkunadiya6704 2 жыл бұрын
Sirji iske baad please DBMS ka course sikhao uski bahut jarurat padti he 🥺♥️♥️
@kashmirtechtv2948
@kashmirtechtv2948 2 жыл бұрын
Us ka kea krain gy
@jhs003
@jhs003 Жыл бұрын
🤣🤣😂😂😂
@muhammadjunaidbashir8873
@muhammadjunaidbashir8873 Жыл бұрын
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
@tirthsondagar1646
@tirthsondagar1646 4 сағат бұрын
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.......
@sudeshvontimaru4531
@sudeshvontimaru4531 2 жыл бұрын
Bro I really appreciate you ! Hatsoff .👍 I always code with you, while you explain which gives me a understanding of how it all works !
@aymandin4912
@aymandin4912 2 жыл бұрын
This course is really amazing 💙
@chandershekharsaini1741
@chandershekharsaini1741 2 жыл бұрын
Really grate course People who never worked in React Js can start full time job or freelancer work after this . Grate bro
@VipinYadav-rp1iz
@VipinYadav-rp1iz 6 ай бұрын
Best teacher..... Maine context api bahut jagah se try kiya... But last mein aapne clear kra diya ❤❤❤lots of love
@raj_gohil07
@raj_gohil07 Жыл бұрын
Great! explanation thanks, puri 10 min me sab kuch samja diya huge thanks.
@dhananjaythote9681
@dhananjaythote9681 2 жыл бұрын
Kaise itna easily itna sab kuch krte ho sir...hats off...
@vishalgaikwad1439
@vishalgaikwad1439 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 😃😃
@techgianttechyforever
@techgianttechyforever 2 жыл бұрын
I think this is india best youtube channel .... thanks a lot sir for this wonderful tutorial
@superbits1947
@superbits1947 2 жыл бұрын
You are the best education KZbinr I have ever seen❤❤
@user-kq5js1ln2u
@user-kq5js1ln2u 4 ай бұрын
watched 2 to 3 videos , but this video cleared all my doubts , thank you harry bhai
@tejaskumar4470
@tejaskumar4470 2 жыл бұрын
Harry Bhai You are so Hardworker!!🔥 You Deserves Millions of Subscribers 🔥😊
@subhajitbar1697
@subhajitbar1697 8 ай бұрын
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 KZbin. ❤
@dipantanch
@dipantanch 2 жыл бұрын
This tutorial is helpful!!
@pryansh_
@pryansh_ Жыл бұрын
very well explained! nice work good boy harry...
@rittwickbhabak7348
@rittwickbhabak7348 2 жыл бұрын
This react js course is awesome. I have understood react context api. You made it very simple to understad.
@sports4yoo
@sports4yoo Жыл бұрын
Thank you sir for thisamazing explanation Everyone can understand easily with that tutorial. 🙌❣️✨
@azhardanish7732
@azhardanish7732 Ай бұрын
Your teaching is awesome, exceptionally fantastic
@shitalkamble110
@shitalkamble110 Ай бұрын
"Kasauti Zindagi ki " and "Balika Vadhu " this kind of examples make us feel more exciting and interesting while learning course from you❤
@surrealsoupuniverse
@surrealsoupuniverse 9 ай бұрын
Its amazing!!!
@preciouskhan1870
@preciouskhan1870 2 жыл бұрын
Harry broo you are great. stay blessed forever and ever.
@hiphop861
@hiphop861 8 ай бұрын
Thank you so much. It is giving me lot of confidence
@itspawanpoudel
@itspawanpoudel Жыл бұрын
Thanks bro I was stucked in that!
@anonymousgerman2809
@anonymousgerman2809 Жыл бұрын
thankyou so much harry bhai
@mandeepmalik77
@mandeepmalik77 2 жыл бұрын
Harry bhai और carry bhai तुम दोनों को इस धरती पर हम जैसे लोगों का भला करने के लिए भेजा गया है💯💯 💕💕💕🙏🙏
@yogeshyts
@yogeshyts 2 жыл бұрын
carry ne ky bhla kr diya tera time waste krne ke alawa
@ffsdiv
@ffsdiv 2 жыл бұрын
Happy teachers day harry... I have learned a lot of things from you🥺
@archauhan111
@archauhan111 Жыл бұрын
Thank you so much harish bhai.
@GamingZone-jm4oq
@GamingZone-jm4oq 2 жыл бұрын
Thank you very much sir
@abqureshi8627
@abqureshi8627 8 ай бұрын
Thanks Much love for you
@aryaagrawal4889
@aryaagrawal4889 2 жыл бұрын
A very happy teacher's day harry bhaiya ! learnt a lot from you from coding to getting inspiration 🙏
@ur_akkhi9866
@ur_akkhi9866 2 жыл бұрын
Best content on the KZbin Lge rho Harry bhai ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️
@bhupensahoo3667
@bhupensahoo3667 2 жыл бұрын
Happy Teachers Day Harry Bhai💖. Really ... You are building my future 😊
@gaurav.lahoti
@gaurav.lahoti 2 жыл бұрын
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.
@AbhishekSingh-cu1fe
@AbhishekSingh-cu1fe 2 жыл бұрын
Happy Teachers Day Harry Bhai ❤. You are the best teacher in the world 👏👏. love u 1000000 times Harry Bhai!
@TBDfilesLalit_kalyan
@TBDfilesLalit_kalyan 2 жыл бұрын
bahot hi badiya broo
@vigneshreddyjulakanti7583
@vigneshreddyjulakanti7583 2 жыл бұрын
Thanks Harry bhai
@TheAaditya007
@TheAaditya007 Жыл бұрын
Nice Video, Awesome MERN Stack Course.
@MananBhardwaj
@MananBhardwaj 2 жыл бұрын
Very good project sir
@user-zf7hq4yk4c
@user-zf7hq4yk4c 27 күн бұрын
good explanation
@mdmahmudulhuqtopu7958
@mdmahmudulhuqtopu7958 Жыл бұрын
Wonderful video
@neonwebdev572
@neonwebdev572 2 жыл бұрын
Thank you ❤️
@karthikmudgal9742
@karthikmudgal9742 2 жыл бұрын
Best Content on this channel 😍
@user-xf2gg3fs1s
@user-xf2gg3fs1s 7 ай бұрын
HARRY YOU ARE ALWAYS A KING AND SOLUTION TO MY PROBLEMS
@shankargairola7923
@shankargairola7923 2 жыл бұрын
Sir you are God of coding
@rigvedshrivastava3896
@rigvedshrivastava3896 2 жыл бұрын
110% clear hogya contextAPI harry bhai 🤩🤩
@kishanverma6489
@kishanverma6489 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
@nikhilgarg9371
@nikhilgarg9371 2 жыл бұрын
harry sir always rock
@Exploreepic786
@Exploreepic786 2 жыл бұрын
17:58 bhut badi baat boli hai bhai ne.. guys bhai ke saath saath coding krni pdegi .
@navneetkumar5517
@navneetkumar5517 11 ай бұрын
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 11 ай бұрын
@@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 11 ай бұрын
@@navneetkumar5517 solve hua kya
@smile__more
@smile__more 10 ай бұрын
​@@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 Ай бұрын
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.
@mahammadsafiq7262
@mahammadsafiq7262 2 жыл бұрын
Thank you
@akshay7801
@akshay7801 11 ай бұрын
harry bai tusi grate ho 🙆‍♂🙆‍♂🙆‍♂
@darshillashkari6384
@darshillashkari6384 2 жыл бұрын
salute to you harry sir
@tehniatmirza1439
@tehniatmirza1439 2 жыл бұрын
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 !
@abidv.0.1
@abidv.0.1 Жыл бұрын
Good Hoogya Diyaa 😇
@manishamali7217
@manishamali7217 2 жыл бұрын
You is my favrouite youtuber
2 жыл бұрын
Happy teacher's day Harry bhaiya 🎉 Please DSA wala course complete krona 🥺
@priyanshumallick953
@priyanshumallick953 2 жыл бұрын
Happy teacher's day dill se Harry Bhaiya🥰🥰
@vdas1335
@vdas1335 2 жыл бұрын
Happy teachers'day harry sir ❤️🙏
@LuckyTics
@LuckyTics Ай бұрын
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
@avinashbagti15
@avinashbagti15 2 жыл бұрын
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 👌
@codingdress5143
@codingdress5143 2 жыл бұрын
☺☺❤again you take our heart
@divyrajsingh8711
@divyrajsingh8711 2 жыл бұрын
can we also change state passing state as prop in other componenet and change value there
@ayanjawaid2251
@ayanjawaid2251 2 жыл бұрын
HAPPY TEACHERS DAY ❤️HARRY BHAI ❤️AAP DUNIYA K SUBSE BEST TEACHER HO , THANK U ❤️ FOR EVERYTHING BROTHER.
@prabhattambe4047
@prabhattambe4047 2 жыл бұрын
Happy teacher's day sirji...♥️
@udayan285
@udayan285 2 жыл бұрын
thanks
@Priyasha2405
@Priyasha2405 2 жыл бұрын
Happy Teachers'Day sir 💜
@subodhguin8883
@subodhguin8883 2 жыл бұрын
Happy Teacher's Day Sir.. ❤️❤️
@luxurylifelivelikeaking8013
@luxurylifelivelikeaking8013 2 жыл бұрын
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
@omprakash7040
@omprakash7040 2 жыл бұрын
Happy teacher's day sir ❤️❤️❤️❤️
@sahilnandal9583
@sahilnandal9583 2 жыл бұрын
Sir pls help that I should take btech hons in cse with specialization in iot and intelligent system or I should take btech in information technology
@LoneWolf-ey1hq
@LoneWolf-ey1hq Жыл бұрын
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?
@abdullahshaban1545
@abdullahshaban1545 Жыл бұрын
love u👍👍👍
@sharadmohandule9308
@sharadmohandule9308 2 жыл бұрын
Happy teachers day harry sir , you are working hard for us . ❤
@maliksuleman9474
@maliksuleman9474 Жыл бұрын
after adding all components in notestate my react page is white blank with no error in the console how to fix it ?
@krishgarg2806
@krishgarg2806 2 жыл бұрын
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 😂
@NikhilKumar-it7nm
@NikhilKumar-it7nm 2 жыл бұрын
Happy teacher's day Harry sir
@birjudhinoja6108
@birjudhinoja6108 2 жыл бұрын
शिक्षक दिवस की खुब खुब बधाई 🤗🙏💐
@masterx5135
@masterx5135 2 жыл бұрын
Happy Teacher's day sir.
@mohammedarifullakhan6798
@mohammedarifullakhan6798 2 жыл бұрын
happy teachers day harry sir
@Rahulkumar-mt9kc
@Rahulkumar-mt9kc 2 жыл бұрын
Happy teachers day Harry bhai
@twinkalraj7950
@twinkalraj7950 2 жыл бұрын
You are one of the best teachers on youtube. Keep sharing your knowledge with us.
@harshkharwar5951
@harshkharwar5951 2 жыл бұрын
HAPPY TEACHERS DAY SIR
@subhamsarkar178
@subhamsarkar178 2 жыл бұрын
Happy teacher's day harry bhai...
@mansoormohammadali7001
@mansoormohammadali7001 2 жыл бұрын
amazing teacher salute from pakistan
@sreenathk.k9772
@sreenathk.k9772 Жыл бұрын
Hi.. If we are using context to save authorisation datas like userName,userId,userRoles etc from the login API ..I am able to access the datas inside any component from the context state.. but if I reload the page every state data is lost... So what will be the solution to persist the data? Because I have to use userId etc in API calls in some of the pages and reload should not cause an issue.. Also if localstorage is a solution then is it secure? Because anyone can change the storage datas manually
@prabhurao2773
@prabhurao2773 Жыл бұрын
use local storage or cookies
@_mtarique
@_mtarique Ай бұрын
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...
@k_a_r_t_i_k_g_a_n_d_h_i__
@k_a_r_t_i_k_g_a_n_d_h_i__ 2 жыл бұрын
Happy Teacher's day Harry sir
@seemasahu1364
@seemasahu1364 2 жыл бұрын
Happy teachers day sir✨✨🎊🎊✨✨🎊😊
@ayushparmar454
@ayushparmar454 2 жыл бұрын
Happy teacher's day harry bhai ❤️
@ahmadwaheed8003
@ahmadwaheed8003 2 жыл бұрын
Happy teachers day harry bahi.
@GoldensGamerz
@GoldensGamerz 2 жыл бұрын
Please sir make a full course about Python Kivy and MD
@facttrendz1314
@facttrendz1314 2 жыл бұрын
Happy teachers day harray sir
@DeadSinceBirth
@DeadSinceBirth 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 2 жыл бұрын
Mera bhi nahi aa raha hai 🤔🤔
@alfaizkhan2925
@alfaizkhan2925 2 жыл бұрын
Happy Teacher's day harry bhai...
useLocation Hook in React | Complete React Course in Hindi #59
10:48
Learn React Hooks: useContext - Simply Explained!
15:46
Cosden Solutions
Рет қаралды 128 М.
PINK STEERING STEERING CAR
00:31
Levsob
Рет қаралды 22 МЛН
Backstage 🤫 tutorial #elsarca #tiktok
00:13
Elsa Arca
Рет қаралды 45 МЛН
Children deceived dad #comedy
00:19
yuzvikii_family
Рет қаралды 3 МЛН
Context API in react | get the concept
29:00
Hitesh Choudhary
Рет қаралды 42 М.
React useContext() hook introduction 🧗‍♂️
11:37
Bro Code
Рет қаралды 16 М.
Introduction to React Context API | Complete React Course in Hindi #57
10:29
Microsoft Girl in the US talks about AI, DSA and life in the US 🔥
21:41
Context API in React JS in Hindi in 2020 #51
25:10
Thapa Technical
Рет қаралды 246 М.
Do you really know postman ?
29:01
Chai aur Code
Рет қаралды 60 М.
Future of AI ft. Indian Developer in USA @SinghInUSA
7:56
CodeWithHarry
Рет қаралды 134 М.