ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

ReactJS Course [9] - UseContext Hook | State Management

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ส.ค. 2024
  • React Beginner to Advanced Course 2022! In this course I will be going over everything you need to know to go from a complete beginner in react, to being able to create big projects on your own.
    Course Code/Exercises: github.com/mac...
    Course Discord: / discord
    🚀 Learn ReactJS By Building 6 Projects: codedamn.com/l...
    🐙 GraphQL Course: codedamn.com/l...
    ► Buy Crypto on Coinbase: coinbase-consumer.sjv.io/PedroTech
    Social
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    Linkedin: / machadop1407
    Instagram: / _pedro.machado_
    Github: github.com/mac...
    Business Email: pedro@pedrotech.co
    EPISODE 9 TIMESTAMPS
    00:00 | Intro
    01:26 | What is State Management?
    04:34 | Setting up the Project
    12:43 | useContext Hook
    Tags:
    - ReactJS Tutorial
    - ReactJS Course
    - React Course
    #reactjs #course

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

  • @lennonporto765
    @lennonporto765 2 ปีที่แล้ว +31

    this course came in the right time for me, you're really making react look easier. Thanks for it, glad i've found your channel

  • @randerins
    @randerins 2 ปีที่แล้ว +7

    I really like how you used a practical example with actual code to describe prop drilling, instead of just showing a graphic like most tutorials do. Made it way clearer for me. Thank you!

  • @heyjitendra
    @heyjitendra 2 ปีที่แล้ว +6

    Pedro this is a very good lecture. As a beginner in react I was very confused with useContext but this example clear many of my doubts.
    Amazing buddy. Can't thank you enough for this series.

  • @sibtycodes3358
    @sibtycodes3358 ปีที่แล้ว +4

    Young talent right there ...Great teaching skills....Thanks for making my React learning easier

  • @kokodev3719
    @kokodev3719 2 ปีที่แล้ว +2

    Thank you so much for this tutorial on useContext. You are an amazing instructor. I was taking a React Course from ZTM it was so confusing and frustrating. You made it sound easy and understandable and even exciting. I so very much appreciate it, thank you!

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

    Thanks, Pedro, the way you have taken step-by-step tutorials makes it very easy to learn React!

  • @afickredox4121
    @afickredox4121 2 ปีที่แล้ว +1

    i really love the way u explain, is so systemic, rather than jump into main topic, but start explain the problem what we face then solve it with a simple solution, thanks man ! is really easy to understand

  • @manavshah1844
    @manavshah1844 ปีที่แล้ว +2

    This explanation is making me learn react easily mate
    Thankss a lot

  • @ashishtripathy2768
    @ashishtripathy2768 ปีที่แล้ว +1

    someone recommended your channel on Twitterr for react . I watched over 10 videos and no one explained in this manner. Thanks

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

    It's been 1 year of this video and still to the date nobody explained this concept with this simplicity

  • @lodix-0
    @lodix-0 ปีที่แล้ว +1

    the best channel on react i've ever met!

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

    Great tutorial. Keeping it simple and explaining why we use the hook. Thank you!

  • @user-wh6hl4qr5t
    @user-wh6hl4qr5t ปีที่แล้ว

    just wanted to show u some appreciation. great teaching. you make everything better for us newbies. practical and super simple.

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

    Pedro reacts class is the best video I have ever seen on this TH-cam ❤... I think he's explanation still remains the best.. though I'm new in react 😢 buh will be waiting for the last react update version videos..

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

    actually I watch it first and try to build it from online source and can not get it well setexplained.... now i got it :) thank you

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

    thank you so much, this is way better than redux. Thanks Pedro !!!!

  • @slaffsla
    @slaffsla ปีที่แล้ว

    You explain so well, Pedro. I am glad I found your course! I progress much quicker than in previous two React courses that were easier in level.

  • @faizanahmed9304
    @faizanahmed9304 2 ปีที่แล้ว +3

    Hey brother thanks for the video, btw check your timestamps they are the last video ones.

  • @user-ke9jo8dk2s
    @user-ke9jo8dk2s 2 ปีที่แล้ว +1

    Pedro, i have not seen it yet, but i 100% sure that you made a perfect content as always! It's time to see it))

  • @haciendadad
    @haciendadad ปีที่แล้ว

    Great video! I wanted to learn what useContext hook does, you made is very easy to understand, thank you!

  • @GH-pu3xc
    @GH-pu3xc 3 หลายเดือนก่อน

    My Universe! This is well explained

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

    very beautifully explained!
    !

  • @nic_jaws
    @nic_jaws 2 ปีที่แล้ว +1

    You are a legend! Great videos. Thank you so much Pedro

  • @maddyjadhav6450
    @maddyjadhav6450 2 ปีที่แล้ว +1

    Great content as always!! Thank you for your efforts to make this series 🙏🏻

    • @maddyjadhav6450
      @maddyjadhav6450 2 ปีที่แล้ว

      Just found your video on react testing thank you 🙏🏻 th-cam.com/video/JBSUgDxICg8/w-d-xo.html

  • @alexcoroza4518
    @alexcoroza4518 ปีที่แล้ว +1

    I still need more convincing before i use this useContext in react.
    In angular, it is like multiple components DEPEND on a certain service which contains the data, makes them coupled with that service but yeah it does solve the prop drilling problem.
    What we do is we just limit the level of component layer that we have to just 2 or 4 at maximum(rare case). Excluding the top most layer which is the App, we have the page components(here we import the required services we need for that page), and then we have the normal components which has no external dependencies, they will work perfectly fine as long you provide the correct props/@inputs. We also utilize the concept of "content projection" to reduce the need of heavy prop drilling.

  • @codezeloss
    @codezeloss ปีที่แล้ว

    Thank you so much man!! Very very well explained !! To be honest, glad I've found your channel ❤.

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

    golden words = "i cant think of any excercise". heheh makes me happy

  • @mohsenahmadi4851
    @mohsenahmadi4851 2 ปีที่แล้ว

    One of the best explanations about context API. 👍🏻💯

  • @eshw23
    @eshw23 2 ปีที่แล้ว +3

    Hey Pedro, loving the series, at the end or anytime soon could you do a bigger project that makes us utilize everything we learned, such as API's and useEffect? Thanks!

    • @PedroTechnologies
      @PedroTechnologies  2 ปีที่แล้ว +7

      Thats the plan!

    • @eshw23
      @eshw23 2 ปีที่แล้ว

      @@PedroTechnologies sick

    • @ayushmishra-sw4po
      @ayushmishra-sw4po ปีที่แล้ว +1

      @@PedroTechnologies please dont use typescript

  • @ardhisasongko
    @ardhisasongko 2 ปีที่แล้ว +1

    Perfect learnin source for learning react

  • @HimanshuSingh-ek3mu
    @HimanshuSingh-ek3mu 2 ปีที่แล้ว +1

    Hey Pedro Please make a vedio on How to use Context API with use Reducer and Two way binding and also how to transfer data from a child to parent .

  • @tokhirjonkhasanov1640
    @tokhirjonkhasanov1640 ปีที่แล้ว

    I understood very easily because of this video😊. Thank you Mr. Pedro

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

    thank god we don't have to use props drilling... i just kept feeling stupid for like 12 minutes man thank u

  • @gunishjain9307
    @gunishjain9307 ปีที่แล้ว

    Great Explanations, simple and easy to follow!

  • @k303k
    @k303k ปีที่แล้ว

    Great Explanation Pedro .Thank you!

  • @abhayrajjha7077
    @abhayrajjha7077 2 ปีที่แล้ว +3

    Can you make a video on managing state using local storage.

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

    Thanks for this amazing video 🎉

  • @LearnWithMuhammadAsif
    @LearnWithMuhammadAsif 24 วันที่ผ่านมา

    explain very good. thanks

  • @yashiel
    @yashiel 2 ปีที่แล้ว +1

    Waiting for this like crazy... hahaha

  • @amankushwaha8180
    @amankushwaha8180 ปีที่แล้ว

    you are amazing teacher glad i found your channel

  • @_dikay
    @_dikay 2 ปีที่แล้ว +1

    well explained, thanks a lot pedro👍

  • @bilal5488
    @bilal5488 2 ปีที่แล้ว +1

    just had one heart every single you won it❤️
    but just need to know did you teach some state management library in this course plzz answer

  • @softwaredeveloper2897
    @softwaredeveloper2897 2 ปีที่แล้ว +1

    Awesome as always

  • @itszehrakaya
    @itszehrakaya 2 ปีที่แล้ว +1

    Omg, that's what i need!! thx

  • @lucianoamaya7828
    @lucianoamaya7828 2 ปีที่แล้ว

    Pedro thanks for your tutorials, they are very helpfull for me. I would love to see a useReducer tutorial

  • @sagarrayhan4655
    @sagarrayhan4655 ปีที่แล้ว

    Love your videos brother

  • @shriprasanna3918
    @shriprasanna3918 2 ปีที่แล้ว +4

    pokimane fan lol.. nice vod now i know this hook better before ..thanks man :) love u

  • @user-wt5eo9ex3y
    @user-wt5eo9ex3y 2 ปีที่แล้ว

    thanks for great explanation, keep going man

  • @keyboardbasher5769
    @keyboardbasher5769 2 ปีที่แล้ว +1

    love these videos dude

  • @ougininja8412
    @ougininja8412 ปีที่แล้ว

    Thx for explaining it clearly

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

    Pedro, ¡Coñooo¡ no muevas tan rápido la pantalla de un lado para otro pq tu lo tienes claro paro los que queremos seguir el curso no mareamos! De todas formas es un curso estupendo!!

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

    Superb.. 🔥

  • @hamzahamza711
    @hamzahamza711 ปีที่แล้ว

    thanks pedro for this content it's helpful

  • @anuragC819
    @anuragC819 ปีที่แล้ว +1

    Why is this episode not in the repo on github?

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

    what's the theme you are using please ? I really like it , simple and practical. ^^

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

    doesn't encapsulate the ChangeProfile component. Then how does ChangeProfile get access to the data passed down by the Appcontext. Provider?

  • @programming7292
    @programming7292 ปีที่แล้ว

    You the best man.

  • @rogeclash2631
    @rogeclash2631 ปีที่แล้ว

    Thanks for this wonderful tuto

  • @oncoding4520
    @oncoding4520 ปีที่แล้ว

    so while you posted your firebase today just learned for the first time clean and ready to go this concept FINALLY it was a stress in my mind. I also i checked out the other react context that you have did previously. Can you please have time someday to post a video about how to get to understand data structure or algorithms because I saw a reels of you how you prepared and was "woou" in 3-4 months. And I was wondering maybe it will be a good idea to make a video like the very basic steps to follow and on which direction and I will do it like i learned react from you video. Thank you brother really

    • @oncoding4520
      @oncoding4520 ปีที่แล้ว

      ohh so now I see you have also a pop drilling react video. nice, going to watch that too

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

    why are the username and setusername passed inside curly braces in the Appcontext.Provider? can we not pass them directly without the braces? Like this
    ...?

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

    earned a sub

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

    Great! 💪

  • @abdirahman1578
    @abdirahman1578 ปีที่แล้ว

    Awesome tutorials mate, you mention that there are different use cases for ContextAPI for state management. Not sure if this is covered in future videos but how would you choose between redux and useContext? what are pros/cons of each?

  • @michelpomerantzeff1749
    @michelpomerantzeff1749 2 ปีที่แล้ว

    Video sensacional Pedro! So um pequeno heads up, caso vc nao tenha percebido, tem algumas partes do video que deveriam ter sido cortadas na edicao. To mencionando na melhor das intencoes, ate pq seu conteudo eh mto bom mano! Parabens demais e keep it up ;)

    • @PedroTechnologies
      @PedroTechnologies  2 ปีที่แล้ว +1

      Boa mano obrigado!! C pode me dizer em quais partes? Kkkkkkkk eu tenho um editor que edita os videos ai vou mostrar pra ele. Obrigado mano!!

    • @michelpomerantzeff1749
      @michelpomerantzeff1749 2 ปีที่แล้ว

      @@PedroTechnologies no minuto 13:20 vc importa useContext e depois corrige pra createContext ... E tem algum outro momento que eu nao lembro mais ... mas foi antes disso, entre o comeco e meio do video. Nao eh nada que atrapalhe o video ... sao so pequenos detalhes de edicao msmo pra deixar o video ainda melhor.

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

      I disagree. The full video without cuts makes the video more vital. I like it the way it is.

  • @salladiallo9766
    @salladiallo9766 ปีที่แล้ว +1

    Hello Pedro , when I click on the github page , it gives me an error.where can I get the code for this episode ?

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

    Hi Pedro, the code for Episode 9 has been removed from the repo. Can you help? Does anyone have issues finding the code?

  • @erhunmwonseredaniel2827
    @erhunmwonseredaniel2827 2 ปีที่แล้ว

    This helped alot thanks

  • @rogeclash2631
    @rogeclash2631 ปีที่แล้ว

    Hey Pedro i can't see branch 9 , thanks

  • @herishonsangma5415
    @herishonsangma5415 ปีที่แล้ว

    Thanks

  • @mrwhispersofficial
    @mrwhispersofficial 2 ปีที่แล้ว

    Nice explanation ♡♡♡

  • @abhishekpuvvada2175
    @abhishekpuvvada2175 ปีที่แล้ว +1

    ChangeProfile component is not directly a child of the AppContext. Will it be able use the Appcontext value even then ?

    • @PedroTechnologies
      @PedroTechnologies  ปีที่แล้ว

      Yes! Every component below the context can use it, even if it is not directly related.

    • @abhishekpuvvada2175
      @abhishekpuvvada2175 ปีที่แล้ว

      @@PedroTechnologies Thank you! Your videos have helped me a lot!

  • @HarshDoes
    @HarshDoes ปีที่แล้ว

    Course code link is not working brother

  • @johnnysummers9323
    @johnnysummers9323 2 ปีที่แล้ว

    I see people complaining about redux. Do you think redux is a bad solution or maybe it's outdated? Would you recommend any other state management?
    I also see people talking about useQuery but I don't know this hook.

  • @abdessamade6995
    @abdessamade6995 2 ปีที่แล้ว

    thank you pedro

  • @helpbox6981
    @helpbox6981 ปีที่แล้ว

    Nothing is showing bro I create two other file in sams location where the App.js is located. No error is showing everything is clean but blank is showing 😒😒😒 what I do tell me I don't want this context API 😭

  • @rajeshsaravanan733
    @rajeshsaravanan733 ปีที่แล้ว

    Super bro

  • @WahabShah23
    @WahabShah23 ปีที่แล้ว

    Pure Awesomeness

  • @kimayapanash8998
    @kimayapanash8998 2 ปีที่แล้ว

    Thanks from Pakistan ❤

  • @karthikbalasubramanya
    @karthikbalasubramanya 2 ปีที่แล้ว

    Excellent...

  • @ronnykn2108
    @ronnykn2108 ปีที่แล้ว

    cool, but using useContext hooks is better than using Redux????
    thanks, I still learning React

  • @UmairKhan-ye1wr
    @UmairKhan-ye1wr 2 ปีที่แล้ว

    Great...!!!

  • @naveenchander7053
    @naveenchander7053 ปีที่แล้ว

    super

  • @lovemanga_forever
    @lovemanga_forever 2 ปีที่แล้ว +1

    Please make a video about redux

  • @a.hannan_06
    @a.hannan_06 ปีที่แล้ว

    HOW TO SOLVE THIS "props.setUsername is not a function" error. Anyone?

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

      I'm getting the same error. Where you able to solve it?

  • @eavoutdom190
    @eavoutdom190 2 ปีที่แล้ว

    Well explained🤌

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

    Unfortunately the code for this episode isn't on github anymore!

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

      why the code is not in github anymore i was searching for this episode code on github.
      I build this episode code in my vs code but the app won't start in web don't know why.? tha'ts why i was searching for this episode code.

  • @j21_33
    @j21_33 ปีที่แล้ว

    Please allow the option to skip ads

  • @noname_160
    @noname_160 2 ปีที่แล้ว

    bro tell us what would be the final project eh😃

  • @augischadiegils.5109
    @augischadiegils.5109 2 ปีที่แล้ว

    ❤️❤️❤️

  • @ihuomafesta4167
    @ihuomafesta4167 2 ปีที่แล้ว

    @pedtroTech it seems l am crushing very intelligent and handsome guy u are ☺🤩

  • @FootballFanzZonee
    @FootballFanzZonee ปีที่แล้ว

    Great effort, but you should try to simplify it, maybe go a little slower, explain every step you take. Or else this isn’t for beginners. Then…..

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

    Too fast for a beginner to follow. Im trying my best 😢 You should be teaching and explaining every step.