Context API in react | get the concept

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ก.ย. 2024
  • The Context API in React is a powerful tool that allows developers to manage state globally across a React application without the need for prop drilling. In this guide, we explore the concept of Context API by setting up a basic example that showcases its usage in a React application. Initially, data passing between components might involve deeply nested props, making the process cumbersome, especially when some components don’t even utilize the passed data. The Context API solves this by creating a centralized store that can be accessed by any component within the app, allowing for a more streamlined and efficient data flow. The steps include creating a context, setting up a context provider, and wrapping the application components with this provider. This ensures that all components are aware of the global state and can either consume or update it as needed. The Context API comes baked into React, so there's no need for additional libraries, making it an ideal solution for simpler state management needs in React applications.
    Welcome to a youtube channel dedicated to programming and coding related tutorials. We talk about tech, write code, discuss about cloud and devops. That’s what we do all day, all year. We roll out a lot of series and videos on our channel.
    All the learning resources such as code files, documentations, articles and community discussions are available on our website:
    chaicode.com/
    You can find our discord link, github link etc on the above website.
    Twitter/X link: x.com/hiteshdo...
    Discord link: hitesh.ai/discord
    Learn React with 10 projects: • Let's learn react from...
    Learn Docker: • A practical guide on D...
    Learn Kubernetes: • Complete Kubernetes Co...
    How does a browser works: • How does a browser wor...
    How nodejs works: • How node JS works | En...
    Learn Redux-toolkit: • Learn Redux Toolkit in...
    Learn NextJS: • Nextjs Full stack course
    Learn Typescript: • Why to learn Typescript
    Learn Javascript: • Welcome to new JavaScr...
    Learn React Native: • React Native Mastery: ...
    Learn Zustand: • React state management...
    Learn Golang: • How to get started wit...

ความคิดเห็น • 242

  • @pavanaha5372
    @pavanaha5372 4 หลายเดือนก่อน +5

    It's one of the cleanest explanations and code I've ever come across.

  • @opencode1
    @opencode1 5 หลายเดือนก่อน +4

    I really liked this kind of video. A simply but difficult situation without any css that is distracting but solely focusing on the funtionality. Thank you very much

  • @rajatabhagarwal9894
    @rajatabhagarwal9894 หลายเดือนก่อน

    The video was worth 30 mins, now the basics of Context API are very clear. thanks!

  • @brunohenrard
    @brunohenrard 4 หลายเดือนก่อน +2

    I really like your explanations, a mix of theory and practical exercise. The fact that you also debug in front of us is a plus.

  • @pravingurjar8303
    @pravingurjar8303 6 หลายเดือนก่อน +3

    It's one of the cleanest explanations and code I've ever come across. Been struggling with this concept for quite a while now. Thank you for clearing it!

  • @madhavvyas2562
    @madhavvyas2562 7 หลายเดือนก่อน +3

    very much {useFull} video and {useContext} of video is very profound 😁😁 thankyou sir

  • @AnitaR-q5l
    @AnitaR-q5l 3 หลายเดือนก่อน +1

    Best explanation. Thank you very much.. Want to learn more from you

  • @ghostdev8574
    @ghostdev8574 8 หลายเดือนก่อน +1

    Most simple explanation out there for Context API in React. Thanks!
    I have been searching this blog or that video but this is my stop for simple and easy experience.

  • @Believeharsh
    @Believeharsh 11 หลายเดือนก่อน +4

    He is putting this much efforts being the successful in his filed already.
    Sir hats off to you firstly he is shooting the videos on hindi then again shooting the same video on english. ❤🎉
    Thank you so much for everything❤

  • @prandeepchoudhary5347
    @prandeepchoudhary5347 6 หลายเดือนก่อน +2

    thank you for sharing valuable knowledge , I'm beginner in react , taking interest , bcoz of you teaching system. thank you .

  • @DavidEzekielTitus
    @DavidEzekielTitus 9 หลายเดือนก่อน +1

    This video just helped Me solve a problem I was having in a project I'm currently working on. Thank You very Much for simplifying it

  • @nica1
    @nica1 8 หลายเดือนก่อน +1

    This tutorial was very useful. Thank you for the clear and succinct explanations, Hitesh.

  • @voboghure-dev
    @voboghure-dev 10 หลายเดือนก่อน +1

    I am a new bee, and today I face the props drilling in my very first hobby project and think of trying Context API. Got this video and thanks a lot. It seems lot more easier now :)

  • @rayalaashok3700
    @rayalaashok3700 8 หลายเดือนก่อน +1

    I like this video because you started this concept independent to other projects...everyone interlinks the concepts so we can't understand if we skip the before videos. Making sure that every concept has deifferent fresh projects will be useful for the audience who wants to learn that particular concept. Thank you hithesh

  • @haloXarcher
    @haloXarcher 6 หลายเดือนก่อน +1

    this video on contextApi helped me understand clearly. thanks, Hitesh, appreciate the effort.

  • @AryRodny
    @AryRodny 11 หลายเดือนก่อน +1

    The best introduction video to Context API. Very well explained, you are a great teacher.Thank you very much.

  • @ArunTejaswiVarmaVatsavai
    @ArunTejaswiVarmaVatsavai 7 หลายเดือนก่อน +1

    You are an excellent teacher !! Thanks a lot for putting lot of effort !! Hats off !

  • @bharataneja_mzn
    @bharataneja_mzn 4 หลายเดือนก่อน +1

    Great Teaching, Very Simple and easy to understand!!
    One suggestion: It would be great if you add some examples so that we can relate easily.

  • @SushantBabar-u8o
    @SushantBabar-u8o 9 หลายเดือนก่อน +1

    Amazing explanation , clearly understood the Context api. ✅✅

  • @Mourshid86
    @Mourshid86 8 หลายเดือนก่อน +2

    Thank you for your explanation it's very clear

  • @programmershams
    @programmershams 9 หลายเดือนก่อน +1

    This is the only video that made me understand content api. I have watched a lot of video buy I don't understand any.
    Thank you so much I really appreciate 💛

  • @thrifterspoint1002
    @thrifterspoint1002 5 หลายเดือนก่อน +2

    very elaborative and simple way of teaching sir g

  • @nayan7065
    @nayan7065 7 หลายเดือนก่อน +1

    Thank You sir, You brilliantly explained the concept.

  • @lucassilverio8923
    @lucassilverio8923 8 หลายเดือนก่อน +1

    Amazing content man!Thank you for providing this knowledge for free!I hope your channel grows a lot, you deserve that!

  • @aryaksinghchauhan
    @aryaksinghchauhan 9 หลายเดือนก่อน +1

    You make everything simple, thank you Sir

  • @naveen-metta
    @naveen-metta 10 หลายเดือนก่อน +1

    very indepth explanation of context api. Thanks for the video. always got confused with props and context

  • @yashfofdiy
    @yashfofdiy 8 หลายเดือนก่อน +1

    Your videos are awesome, Learning a lot of new things from this course. I am not sure whether you already posted the answer to my question but am a little curious to know the extension you are using to get the written code suggestions.
    Thanks for teaching us.

  • @briansekwakwa1902
    @briansekwakwa1902 7 หลายเดือนก่อน +1

    Awesome Video Hitesh. Very easy to digest and follow along.😃

  • @adamyasharma_0135
    @adamyasharma_0135 6 หลายเดือนก่อน +1

    smoothest video on Context API,thanks alot

  • @prasadpatil2371
    @prasadpatil2371 11 หลายเดือนก่อน +1

    This video is very helpful for understand Context API in React

  • @rickdevmajumder5729
    @rickdevmajumder5729 10 หลายเดือนก่อน +1

    Big Fan Sir from last 6 years. thank you :)

  • @rumaisanaved6855
    @rumaisanaved6855 11 หลายเดือนก่อน +1

    Mannn your way of explanation is just amazing... Keep up the good work....

  • @kokilapatelus
    @kokilapatelus 10 หลายเดือนก่อน +1

    Thank you Hitesh 🎉you are awesome teacher

  • @KumaresanK-p1t
    @KumaresanK-p1t 9 หลายเดือนก่อน +1

    Hey Hitesh it is really interesting and useful.Thanks

  • @gyanendraverma3232
    @gyanendraverma3232 8 หลายเดือนก่อน +5

    You are one of the best teachers on yt I have learned from. Keep up the great work!!

  • @pritamsarkar4996
    @pritamsarkar4996 11 หลายเดือนก่อน +1

    Thank you very much hitesh sir😊😊

  • @khaleelalhaji
    @khaleelalhaji 10 หลายเดือนก่อน +2

    Thank You so much for the great work.

  • @divyanshunaudiyal922
    @divyanshunaudiyal922 10 หลายเดือนก่อน +1

    thank you hitesh for these wonderful videos

  • @astro7853
    @astro7853 11 หลายเดือนก่อน +1

    thanks for this amazing playlist bro really like your explanation for a non hindi speaker like me

  • @АлександрРевин-ъ8к
    @АлександрРевин-ъ8к 9 หลายเดือนก่อน +1

    Thank you Hitesh!
    Thank you so much

  • @shubhamkakad10x
    @shubhamkakad10x 9 หลายเดือนก่อน +1

    You are genius sir you makes very complex things very simple and easy

  • @rezikaranadze-ei8fq
    @rezikaranadze-ei8fq 7 หลายเดือนก่อน +1

    really good explanation, amazing work

  • @kobiowuquadri9458
    @kobiowuquadri9458 8 หลายเดือนก่อน +1

    Well explained, Thank you, Hitesh

  • @kashishagrahari7087
    @kashishagrahari7087 11 หลายเดือนก่อน +2

    Hey Hitesh!
    Content is amazing as always. Thanks for adding your time and energy for such deep learning videos
    Hoping for more topics are coming up 🌻
    Thanks!🌻

  • @devaprem7777
    @devaprem7777 11 หลายเดือนก่อน +1

    its useful bro... look for big project and deep concepts from you...

  • @sumitredhu5678
    @sumitredhu5678 11 หลายเดือนก่อน +1

    love the pace and simplicity of your videos.

  • @zaidyousaf4449
    @zaidyousaf4449 10 หลายเดือนก่อน +1

    Thanx for giving us such kind of videos

  • @saadarman4718
    @saadarman4718 7 หลายเดือนก่อน +1

    Great work, very well explained

  • @programmershams
    @programmershams 9 หลายเดือนก่อน

    I will keep watching all your videos because I really love how you explain things.
    Like you simplified it to the core.
    Thank you once again ✅️👍

  • @technawaz
    @technawaz หลายเดือนก่อน

    cleared all my problems , thank you sir

  • @ahmadswalih439
    @ahmadswalih439 3 หลายเดือนก่อน

    Clean and precise to the point

  • @morecoinbull
    @morecoinbull 10 หลายเดือนก่อน +1

    Hey man. as always thank you for making these videos. it is incredibly helpful!!

  • @MGork
    @MGork 7 หลายเดือนก่อน +1

    thank you for really easy to follow guide

  • @amazingprincelee
    @amazingprincelee 11 วันที่ผ่านมา

    Great course, thanks Hitesh

  • @praulayar4805
    @praulayar4805 9 หลายเดือนก่อน

    one of the best video to understand context API

  • @muhammadnauman3087
    @muhammadnauman3087 11 หลายเดือนก่อน +1

    Great job alot to learn from you

  • @niduram
    @niduram 3 หลายเดือนก่อน +1

    you are a good teacher

  • @sumanjeet2300
    @sumanjeet2300 10 หลายเดือนก่อน

    The best explanation of context API

  • @vishnurajm.r8407
    @vishnurajm.r8407 28 วันที่ผ่านมา

    Nice video on context.Liked It

  • @cyb3rjunky609
    @cyb3rjunky609 11 หลายเดือนก่อน +1

    love your dedication for uploading videos, sir

  • @icongh1511
    @icongh1511 5 หลายเดือนก่อน

    I'm new subscriber here and I am enjoying your react tutorials

  • @niki5223
    @niki5223 4 หลายเดือนก่อน

    Amazing easy explanation 👏🏻

  • @anandrp8456
    @anandrp8456 9 หลายเดือนก่อน

    Thank you so much Hitesh, The concept is very clear.

  • @ankushladani496
    @ankushladani496 4 หลายเดือนก่อน

    Watching for revising context api.😊

  • @munna5553
    @munna5553 11 หลายเดือนก่อน +2

    Guru ji LCO pe login nhi kar pa rha hoon. Maine apko mail bhi kiya h. Please resolve | mera backend ka course 3 days le ruka hua h please resolve this issue 😢😢😢

    • @tanyamaurya9626
      @tanyamaurya9626 11 หลายเดือนก่อน

      Ineuron walei access nahi derei.
      Unhone sir k courses apnei site pei 20-25k kei daal diye hai

  • @MuthuKumar-fb3ej
    @MuthuKumar-fb3ej 4 วันที่ผ่านมา

    nice explanations I ever saw

  • @Mawuko-SenyoHayibor
    @Mawuko-SenyoHayibor 9 หลายเดือนก่อน +1

    Great video Hitesh

  • @crashx5717
    @crashx5717 หลายเดือนก่อน

    thank u hitesh I'm on my journey of Getting better and better at react so i can either move and learn node.js or go further and also learn next.js i dont know let me know if u have a suggestion. because i really want to try backend designing isn't really my thing. only when i feel like it as a job i rather do other codings and leave the css to others.

  • @ichokusomtoo2358
    @ichokusomtoo2358 6 หลายเดือนก่อน

    really nice video, i can say i now understand thee context api

  • @youtubecodinggithub6145
    @youtubecodinggithub6145 3 หลายเดือนก่อน

    i have learned somuch thank you sir

  • @lucky-z8n
    @lucky-z8n 10 หลายเดือนก่อน

    Good Evening, sir, we are teaching well, and I like your teaching skills and your putting in a lot of effort. I want to tell you something that is complicating things in these videos can you explain it in the easiest way.........

  • @tomashkhamlai7243
    @tomashkhamlai7243 5 หลายเดือนก่อน

    Thanks! You're great are in explaining things)!

  • @odhiambo_ed
    @odhiambo_ed 4 หลายเดือนก่อน

    The best teacher

  • @89lakaganth
    @89lakaganth 6 หลายเดือนก่อน

    Thank you Hitesh!

  • @Me-nh3pt
    @Me-nh3pt 3 หลายเดือนก่อน

    Thanks. just turned on comments to comment. Thanks alot.

  • @WEBADDA07
    @WEBADDA07 7 หลายเดือนก่อน

    Thank you sir, I got answer of my problem...

  • @muthupandi6628
    @muthupandi6628 5 วันที่ผ่านมา

    clearly explained bro

  • @soen-buggy
    @soen-buggy 8 หลายเดือนก่อน

    Thanks 😊. Worth watching this 👍

  • @loudcapricorn5513
    @loudcapricorn5513 5 หลายเดือนก่อน

    Keep up the great work!!

  • @avi933
    @avi933 11 หลายเดือนก่อน +1

    simple and easy to understand

  • @Shiv_kolekar
    @Shiv_kolekar 2 หลายเดือนก่อน

    Really great and helpful video

  • @ManasPant-gf3jv
    @ManasPant-gf3jv 9 หลายเดือนก่อน

    Great explanation

  • @johnforeverrules
    @johnforeverrules 7 หลายเดือนก่อน

    thanks a lot hitesh sir.

  • @sumit-ch1pz
    @sumit-ch1pz 3 วันที่ผ่านมา

    very helpfull

  • @Hatsoff4u
    @Hatsoff4u 9 หลายเดือนก่อน

    Awesome sir

  • @karthikkkutty7701
    @karthikkkutty7701 10 หลายเดือนก่อน

    great video bro, i think you really sound similar to piximperfect

  • @hsntech2143
    @hsntech2143 11 หลายเดือนก่อน

    Thanku so Much Sir

  • @suryakumar7285
    @suryakumar7285 11 หลายเดือนก่อน

    Thanks for the video man.❤

  • @pavansai9735
    @pavansai9735 8 หลายเดือนก่อน

    Awesome man

  • @mareena8816
    @mareena8816 3 หลายเดือนก่อน

    Well explained!

  • @VARUNVERMABCE
    @VARUNVERMABCE 8 หลายเดือนก่อน

    thank you sir for this video ♥

  • @Gorav14
    @Gorav14 11 หลายเดือนก่อน +1

    thanks a lot brother to teach us for free of course. well i have a couple of questions can i get a jib by studying here only or i need a paid course(well i know that free courses also enough to get where one wants). The second question is i am currently learning php(offline-class) these days, and for frontend i use tailwindcss (i also know css and bootstrap) , what else i need to do, can you please guide me personally . like can u please show me the path to become a developer . would be a pleasure to get your response

  • @emmanuelfalola5831
    @emmanuelfalola5831 10 หลายเดือนก่อน

    Thanks for the video

  • @Hungry883
    @Hungry883 6 หลายเดือนก่อน

    Very nice video

  • @anjalipadmanabhan9600
    @anjalipadmanabhan9600 7 หลายเดือนก่อน +1

    Coding starts: 8:29

  • @rohanhraj6021
    @rohanhraj6021 11 หลายเดือนก่อน +6

    Is the LCO team inactive? I am a pro LCO member and not able to access my account due to some technical issues. I have mailed all possible mail IDs and none of them replied nor the issue is solved I am not able to access my course. Please help, I lost track and my membership is fading.

    • @albi712
      @albi712 11 หลายเดือนก่อน +1

      Me too facing same issue. Unable to login. Sent couple of mails to support team. But no replies. Not sure whom to contact.

    • @hemnathvike4960
      @hemnathvike4960 11 หลายเดือนก่อน

      facing same problem. but in ios app im able to access the contents, but it is difficult. waiting for the issue to get resolved.

    • @sahilvaidya8016
      @sahilvaidya8016 10 หลายเดือนก่อน

      Same issue

    • @YogeshYk-nc3kg
      @YogeshYk-nc3kg 2 หลายเดือนก่อน

      Which extension you are using its automatically suggesting the code can you please say for us

  • @VijayKute-j1m
    @VijayKute-j1m 6 หลายเดือนก่อน

    good explanation

  • @samuelsenigl
    @samuelsenigl 9 หลายเดือนก่อน

    Thank you for this tutorial!

  • @Adventures_English
    @Adventures_English 8 หลายเดือนก่อน

    You are amazing. Thanks again.

  • @AKaps-s3g
    @AKaps-s3g 8 หลายเดือนก่อน

    Thanks Sir