The useContext hook in React | Sigma Web Development Course - Tutorial

Поділитися
Вставка
  • Опубліковано 14 лис 2024
  • Access the Sigma web development course playlist: • Sigma Web Development ...
    ➡️ Source Code: github.com/Cod...
    ➡️ Notes and CheatSheets: www.codewithha...
    ➡️ English Subtitles are now up for all the videos!
    ►Checkout my English channel here: / @programmingwithharry
    ►Instagram: / codewithharry
    python, C, C++, Java, JavaScript and Other Cheatsheets [++]:
    Playlist: • Coding CheatSheets 🧾 b...
    ►Learn in One Video[++]:
    Python Course with 5 Projects: • Python Crash Course in...
    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...
    Follow Me On Social Media
    ►Website (created using Django Rest & Angular): www.codewithha...
    ►Facebook: / codewithharry
    ►Instagram: / codewithharry
    Twitter: / codewithharry
    Comment "#HarryBhai" if you read this 😉😉

КОМЕНТАРІ • 210

  • @GauravBhatta-g5e
    @GauravBhatta-g5e 9 місяців тому +63

    one of my friend said if you really focus on yourself you will find that there is not much of competition and also after seeing the views difference in all of your vedio i think i definately get what he was actually saying

  • @LearnWithManan.110
    @LearnWithManan.110 5 місяців тому +12

    youtube pr is topic pe kam se kam 30 minutes ki long videos banaai he logon ne magar Harry bhai ne 15 minute mein un se bhi acha samjha diya. Lovo from Pakistan

  • @kaleemelahishaikh7990
    @kaleemelahishaikh7990 16 днів тому +1

    I must comment "Your way of teaching in an easy way with mix language manner is Best"
    Keep it up brother !

  • @KrishnaJaulkar
    @KrishnaJaulkar 2 місяці тому +6

    Best video on Context Hook till now

  • @truelyeager316
    @truelyeager316 Місяць тому +1

    Harry bhai its just awesome ,
    First video of react that I understand in one go. Hope u will continue this approach , first explain whole scenario with code and then its solution❤

  • @md.marufbinsolaiman4038
    @md.marufbinsolaiman4038 5 місяців тому +6

    One video is enough to learn useContext. Great video sir.

  • @Basumatary-g6p
    @Basumatary-g6p 21 день тому

    this is the third video i watched on context API , and this was the best

  • @gajulalekhaj7088
    @gajulalekhaj7088 9 місяців тому +3

    loved the video and this topic is released exactly before my exam
    thanku bhayya lotof love

  • @Rohit_Rai901
    @Rohit_Rai901 9 місяців тому +25

    Let's vote for Data Science course after sigma🔥🎉💪

  • @ElhaamAli-di5su
    @ElhaamAli-di5su 9 місяців тому +4

    Hello Harry Bhai, Love from Gilgit Baltistan, this course is amazing and on video No. 78

  • @bishalkumarshaw2789
    @bishalkumarshaw2789 4 місяці тому +1

    Ab samajh mein aaya context api. Thank you bhaiya ❤❤😊

  • @owaisnadeem2751
    @owaisnadeem2751 8 місяців тому +4

    Love and respect from Pakistan Harry Bhai

  • @rohitstudyclube7270
    @rohitstudyclube7270 9 місяців тому +5

    Salute for your hardworking and consistency ❤

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

    After hitesh and piyush garg,watched your video and now finally im able to understand context api.

  • @owaisnadeem2751
    @owaisnadeem2751 8 місяців тому

    Humaray yahan Pakistan may bhi kuch Indians key trah key mentality k log hotay hain , jo her achay say achay level k course ko start krnay say bhi pehlay ye puchtay hain , k ye achi job or placement lagwaye ga ya nahi . agar wahin time learning may or practice may lagayein to beast ban jayein is field may . You are a real gem Sir 😍😍😍🥰🥰🥰🥰

    • @MohsinKhan-wv3ep
      @MohsinKhan-wv3ep 8 місяців тому

      What do you mean indians ke tarah log ? 🤬

  • @Ashish-sm8do
    @Ashish-sm8do 3 місяці тому +1

    best explanation so far

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

    very simple explanation of context api , my suggestion for the viewers first watch the video and try by yourself

  • @Asthetic._.Boi._.
    @Asthetic._.Boi._. 9 місяців тому +5

    Sir aur Kitne tutorial honge aage please answer me.
    Love from Pakistan 💚❤️

  • @NadeemAbbas-d7x
    @NadeemAbbas-d7x 4 місяці тому

    Very easy way for understanding this concept. Great Harry Bhai

  • @Islamicviralshort0a
    @Islamicviralshort0a 9 місяців тому +5

    I loved this course and, I Saved 115 all your videos in my laptop. I don't want any type of paid course. #SigmaOp
    Pinn my Comment, Big Fan

  • @shubhraj2915
    @shubhraj2915 7 місяців тому +1

    make one video on UseReducer as well

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

    Thank you Harry bhai. It is a bit complex for me, but slowly it will become easy. 👍👍

  • @yoriichi2504
    @yoriichi2504 9 місяців тому +3

    Hamara Teacher Kaisa ho? Harry bhai jaisa ho! ❤

  • @Adithi-r4k
    @Adithi-r4k 4 місяці тому +1

    Thanks for the valuable content. Really feeling grateful to you.

  • @saumyajoshi-ym2os
    @saumyajoshi-ym2os 9 місяців тому +4

    Sir now a days I am exploring angular spring boot full stack developement projects where i found these highlighting features
    1 razor pay
    2 login verification on mail
    3 more complex frontend part like links & all
    4 windows local storage for saving user credentials in browser
    Now my doubt is are these versatile range projects inspired by real mnc projects & can Learning it help freshers to develop projects in job ?

  • @NisarFoodShow
    @NisarFoodShow 9 місяців тому +2

    The course is awesome ❤❤

  • @ProgramingWithArpit
    @ProgramingWithArpit 9 місяців тому +1

    Harry Bhai We Will Be Teaching you JavaScript react best and your courses is very good and website is good

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

    thanks.. ab acha sa samj a gya ha context ka.❤

  • @priyanshutrivedi2357
    @priyanshutrivedi2357 8 місяців тому

    Amazing explanation Harry Bhai ❤

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

    this line :- I WILL SEE YOU NEXT TIME ❤❤

  • @yasinshaikh9823
    @yasinshaikh9823 8 місяців тому

    There is draw back of usecontext ....it should pass state only in react component ...not in normal function

  • @shriyasb2006
    @shriyasb2006 9 місяців тому

    Sir after this react course please teach us about NextJs also...

  • @asimayub2825
    @asimayub2825 4 місяці тому +4

    how explained this better than hitesh sir

  • @artechgiants
    @artechgiants 9 місяців тому +1

    Awesome video 😎 👍

  • @hiphop861
    @hiphop861 9 місяців тому +1

    thank you. Please add next js

  • @vaghelabhautik6343
    @vaghelabhautik6343 9 місяців тому +1

    SIR , PLEASE AB AK AI PE SERIES BANAVO NA
    JORDAR SERIES CHE
    SIGMA BATCH OP

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

    mja aagya guru

  • @Apnavlog2001
    @Apnavlog2001 9 місяців тому +1

    My first comment sir ko special thank you very much sir🎉🎉🎉🎉🎉

  • @RoboBros248
    @RoboBros248 Місяць тому

    React OP #harrybhai best youtuber and coding legend 💻

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

    love you harry bhai from iit jodhpur

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

    #reactOp
    #best course - sigmawebdevelopmentcourse

  • @frustratedengineer5988
    @frustratedengineer5988 9 місяців тому +1

    @Harry Bhai I was using your 4 years old web development playlist..
    Front end only..
    Kaun sa follow karna hai abb😅

    • @Hatthetail
      @Hatthetail 8 місяців тому

      New hi kro vese html or css old course me bhi boht achi ha or same ha.

  • @goutamarya1452
    @goutamarya1452 9 місяців тому +1

    Sir aapne isme use effect likha hai ye use context aayega❤❤

  • @niyamatalimallick7158
    @niyamatalimallick7158 9 місяців тому +1

    Harry bhai keep it up

  • @AsharMallick750
    @AsharMallick750 9 місяців тому +1

    Title Should be "The useContext hook in React | Sigma Web Development Course - Tutorial #116"

  • @tanmaypatil2517
    @tanmaypatil2517 9 місяців тому

    Please make videos on redux. It is an important topic for react developers.

  • @VPatil33
    @VPatil33 9 місяців тому

    Helpfull Harry bhai❤

  • @AbhishekKumar-ir3jk
    @AbhishekKumar-ir3jk 9 місяців тому

    Code with Harry baba kii Jay🙌

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

    thank you haris bhai

  • @lokeshsingh8833
    @lokeshsingh8833 9 місяців тому

    Title is incoreect Harry Brother

  • @Sandeep_Dhakad
    @Sandeep_Dhakad 9 місяців тому +1

    “Learn as if you will live forever, live like you will die tomorrow.”

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

    Thank You. For this awesome Video

  • @Mr.dev_15
    @Mr.dev_15 2 місяці тому

    Thks harry bhai.

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

    #CodeWithHarryRocks & #React Batch OP 🤟👍

  • @aryansinha1818
    @aryansinha1818 7 місяців тому

    It took me 55 mins to complete this video, I learned the shortcut method to open the project in the vs-code itself, without using file explorer, I was coding along, made a short soft note on useContext, passed it using 2 different ways and then the actual concept of useContext hook. I understood all but don't you think 50 mins is way too much time?

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

      If you understood deeply than it's good

  • @csengineer8819
    @csengineer8819 Місяць тому +1

    love you bhaiya

  • @mkumar363
    @mkumar363 9 місяців тому

    course is awesome...

  • @FatimaSaleem-s6u
    @FatimaSaleem-s6u 3 місяці тому

    well explained

  • @ghgltggamer
    @ghgltggamer 9 місяців тому +1

    1st person , but i already have my own Framework which is like react bu different

  • @codngwthubaid
    @codngwthubaid 9 місяців тому

    Aryy Harry bhai title me useEffet hook aagya, lecture tho useContext ke bare me hain 😅😅

  • @Hafijur0211
    @Hafijur0211 7 місяців тому

    🎯 Key Takeaways for quick navigation:
    00:00 *🎥 Introduction to the useContext hook in React*
    - The video introduces the useContext hook in React.
    00:20 *🔧 Using Context API in React*
    - Context API allows passing data through the component tree without having to pass props down manually at every level.
    01:01 *🔄 Prop drilling in React*
    - Prop drilling refers to the process where props are passed from a component to its descendants down the component tree, even if intermediate components do not use the props.
    01:56 *🎯 Advantages of using useContext hook*
    - The useContext hook provides an easier way to access state across deeply nested components, avoiding prop drilling.
    02:23 *🚀 Practical demonstration of useContext in React*
    - A practical demonstration showing how to use the useContext hook in a real React application.
    03:07 *🛠️ Creating Components in React*
    - Demonstrates creating components in React.
    - Includes creating a component folder, adding components like Button and Navbar, and organizing the components.
    04:00 *🧩 Organizing Components with React Fragment*
    - Uses React Fragment to organize components.
    - Demonstrates importing and using a Button component inside another component.
    05:07 *📦 Creating and Using External Components*
    - Shows how to create an external component file.
    - Imports and uses the external component (Button) in another component.
    06:32 *🔄 Understanding the useContext hook in React*
    - Explanation of how to use the useContext hook in React.
    - Demonstrates how to pass and access props using useContext.
    - Shows how to use destructuring to simplify accessing props.
    07:12 *🔄 Implementing useContext in React components*
    - Demonstrates how to implement useContext in multiple components.
    - Shows how to access and display the context value.
    - Explains how to refactor code to use useContext instead of passing props manually.
    07:54 *🔄 Refactoring code to use useContext*
    - Shows the process of refactoring code to use useContext instead of props drilling.
    - Highlights the benefits of using useContext for cleaner code.
    - Explains how to organize code in folders and files for better structure.
    09:15 *📁 Context API Folder Structure*
    - Creating a folder called "Context" for organizing context-related files.
    - Avoiding confusion by keeping context-related files separate from other files.
    09:58 *🔄 Using Context in Components*
    - Creating a context folder with files for each context, e.g., "counter.js".
    - Importing the context in the main app.js file and using it.
    11:08 *🔗 Context Provider Usage*
    - Using the context provider to wrap the entire app in app.js.
    - Achieving a nested component structure where all components receive the context value.
    12:18 *🔄 Using the useContext hook in React*
    - Demonstrates how to use the useContext hook in React to access context values in nested components.
    13:38 *🖱️ Changing context value with a button click*
    - Shows how to change a context value by clicking a button, using the useState hook within the context provider.
    14:50 *🔄 Updating context value using setState function*
    - Explains how to update a context value using the setState function, ensuring the value is correctly updated and reflected in the UI.
    15:16 *🔄 Updating state in nested components with useContext*
    - Demonstrates how to update state in nested components using the useContext hook.
    Made with HARPA AI

  • @MuskanKumari-lv5ul
    @MuskanKumari-lv5ul 9 місяців тому

    Harry bhaiya how to apply in your company?...pls give us full video on it.

  • @MuhammadAnas-ij6b
    @MuhammadAnas-ij6b 9 місяців тому

    Harry bhai love form pakistan

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

    Harry ki Guarantee ✅✅

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

    Thankyou bhai

  • @SwapnilGolhar
    @SwapnilGolhar 8 місяців тому

    Hi bro ❤
    Is bar UA-cam clone create Karo
    With full response like button login screen shot screen upload screen home screen posts screen and response nav bar database run time
    Like one page to another page Kasi transfer ho gaya
    ❤❤
    #SigmaBatchop

  • @uidesign1
    @uidesign1 8 місяців тому

    Love you bhaiya ❤

  • @vaghelabhautik6343
    @vaghelabhautik6343 9 місяців тому

    bhai AI par series banavo ne

  • @chaurasiyaAayush-z2y
    @chaurasiyaAayush-z2y 9 місяців тому

    Sigma batch op 🎉🎉

  • @amantrivedi3573
    @amantrivedi3573 9 місяців тому +1

    #doubt If we have useContext hook in react then why we use Redux for same operation?

    • @blackboxbs8642
      @blackboxbs8642 9 місяців тому

      Usecontext wont work for larger global state

  • @prasenjitnayak_
    @prasenjitnayak_ 9 місяців тому

    Heading mein useEffect hai bhaiya.

  • @markiV643
    @markiV643 Місяць тому

    sigma batch op>>>

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

    Thank you

  • @AN_Bhagat
    @AN_Bhagat 8 місяців тому

    #SigmaBatchOp
    #ReactOp
    #Harry sir❤❤

  • @kingslydavid6148
    @kingslydavid6148 9 місяців тому

    Coming for you sooon

  • @adityanarayandewangan7811
    @adityanarayandewangan7811 9 місяців тому

    Sigma batch OP
    React OP

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

    Harry bhai VS code main knosi Theme use karte ho

  • @MonikaKumari-er4de
    @MonikaKumari-er4de 6 місяців тому

    Thanks ❤️

  • @TalkSoft
    @TalkSoft 9 місяців тому +1

    Assam / Hailakandi sa kown kown ha

  • @MuhammadNadir-f8f
    @MuhammadNadir-f8f 9 місяців тому

    good bhai

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

    Sir, Which chrome theme are you using?

  • @marathisupport3471
    @marathisupport3471 9 місяців тому

    Harry Bhai Title mai useEffect hai

  • @gautamgupta9997
    @gautamgupta9997 9 місяців тому

    What is outletcontext

  • @tejaswilog3946
    @tejaswilog3946 9 місяців тому +22

    Bhaiya video ke title mein UseEffect likha hua hai

  • @cyberfoxgaming9416
    @cyberfoxgaming9416 9 місяців тому

    Hlo harry bhai mai aap ka old web development follow karu ye new sigma wall wed devlopment please bata di confusion hai

  • @YasirSial-e8z
    @YasirSial-e8z 2 місяці тому +1

    react from Pakistan

  • @niyamatalimallick7158
    @niyamatalimallick7158 9 місяців тому +1

    Harry bhai title change kijeye

  • @BismaMustafa-r1o
    @BismaMustafa-r1o 2 місяці тому

    component 1 me jo const counter waly jo line hy us ki smjh nhi ai woh q likho

  • @Code_gen
    @Code_gen 9 місяців тому

    I Am coming wait for me❤❤

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

    Sigma batch op

  • @arifurrahaman4135
    @arifurrahaman4135 9 місяців тому

    Hello SIR. I am from Bangladesh and I am a non CSE student. I have 3 to 4 years to learn coding. So should I start with C and C++?

    • @akshatjain1328
      @akshatjain1328 9 місяців тому +1

      Starting with java would be more beneficial

    • @aniruddharoysharma4540
      @aniruddharoysharma4540 8 місяців тому +1

      Nope if he is learning as a beginner he should start from python or c

  • @RohanDasRD
    @RohanDasRD 9 місяців тому

    Amazing

  • @mkumar363
    @mkumar363 9 місяців тому

    can you design Apple music

  • @abdullahraj2076
    @abdullahraj2076 9 місяців тому

    Source code 108 vedio tak hi show ho raha ha kindly do something haris bhai

  • @Rand0m.stuffff
    @Rand0m.stuffff 3 місяці тому

    I'm facing Error: Objects are not valid as a React child (found: object with keys {$$typeof, _currentValue, _currentValue2, _threadCount, Provider, Consumer, _defaultValue, _globalName, _currentRenderer, _currentRenderer2}). If you meant to render a collection of children, use an array instead.
    can someone help me out with this ?

    • @rdxpali3379
      @rdxpali3379 28 днів тому

      If you're encountering the "Objects are not valid as a React child" error while using the Context API, it typically means you're trying to render the context value directly, which is an object. Here’s how to address it:
      Check Context Provider: Ensure that the value you are providing in your context is appropriate (e.g., a string or a number) or properly accessing the properties of the object when consuming the context.
      Consuming Context: When you consume the context, ensure you're rendering a specific property of the object instead of the whole object.
      Example: If your context provides an object, access a specific field:
      Instead of rendering the entire object, render its properties (like value.name).
      Debugging: Use console logs to inspect the context value and make sure you’re not trying to render the whole object.

  • @SiddharthaRay7
    @SiddharthaRay7 9 місяців тому

    React OP❤

  • @zuberkhan3050
    @zuberkhan3050 9 місяців тому

    #SIGMA_BATCH_OP❤
    #JAVASCRIPT_OP

  • @deepaman1649
    @deepaman1649 8 місяців тому

    #React OP
    #CodewithHarry

  • @arafatrahman8494
    @arafatrahman8494 9 місяців тому

    #ReactOP #SigmabatchOP #Harrybhai #C.W.H #CodeWithHarry

  • @factkart2754
    @factkart2754 Місяць тому

    harry bhai ye topic thora confusing hai .