Mastering React Context: Do you NEED a state manager?

  Рет қаралды 99,382

Jack Herrington

Jack Herrington

Күн бұрын

Пікірлер: 272
@justine_chang39
@justine_chang39 2 жыл бұрын
honestly this channel is probably the best out there for deep dives into Typescript and React, love your content good sir
@tomascarignano5002
@tomascarignano5002 2 жыл бұрын
Agree
@SterlingCobb
@SterlingCobb 2 жыл бұрын
hey i’ve been following for a while now and this is solid. no gimmicks. pure education, learning and excellent content primarily focused in TS and JS +frameworks. would love to see Rust and wasam content integrated with js. excellent work. can’t wait to see your channel blow up beyond 100k.
@BillBakerB
@BillBakerB 2 жыл бұрын
Great team advice too, even you know the libraries already, "What is easier to review?" is a helpful perspective.
@hanmingzheng5592
@hanmingzheng5592 2 жыл бұрын
I was 2 videos and decide to subscribe. This channel got the real stuff compared to so many other KZbinrs pretending to be professional developers.
@Gruby7C1h
@Gruby7C1h 2 жыл бұрын
True, this channel deserves to be much bigger - lots of knowledge and very good production quality.
@bythealphabet
@bythealphabet 2 жыл бұрын
Love how you Made the comparison between Context and Zustand. I always use Context and didn’t see why I should consider other state management tools. Thank you Jack
@tiennsloit
@tiennsloit Жыл бұрын
I don't understand why youtube didn't recommend your channel to me earlier. This video is not only about mastering React context but also the way you refactor/repurpose the components for the use of context and other state managers. Thanks so much because I learn a lot from it.
@viyicciyiv
@viyicciyiv 9 ай бұрын
Never really understood what context and Redux do, and you explain it so well with clear examples. Thank you!
@lucasishuman
@lucasishuman 2 жыл бұрын
Incredibly clear and helpful demo. Please keep doing what you're doing. Your channel is by far the best I've found at showing both "the how" and "the why" of very specific and practical React + TypeScript in a very accessible way.
@universecode1101
@universecode1101 2 жыл бұрын
Mastering with the MASTER 🔥Every video is great, sometimes too much 😄, I mean I have seen the video even twice because you reach a high level, but with you Jack, I can improve my skills. Thanks ✌🏻
@siriusplayz5871
@siriusplayz5871 Жыл бұрын
WOW! I mean really WOW... You are such a GREAT teacher. Teaching with examples and passing down all that precious knowledge with such an ease. Brilliant. I'm a fan. First video I watch on your channel and I'm subbed forever. I just started learning React 2 months ago and this helps a looootttttt. Thank you sooooo much man. I'll keep coming back for more knowledge as I need to get a job very soon, hopefully.
@AmodeusR
@AmodeusR 2 жыл бұрын
It's really neat how you go building the example structure till you get on the topic of the video instead of already showing everything done and and explaining. I really liked that :D
@marcelwopperer9776
@marcelwopperer9776 2 жыл бұрын
adding this facade layer is genious
@thatboyneedstherapy
@thatboyneedstherapy 2 жыл бұрын
For my money, when it comes to getting these concepts across in an accessible way that goes beyond the superficial while avoiding being mired down, you are absolutely unbeatable. It's a fine line but you walk it expertly!
@mistersir3185
@mistersir3185 Жыл бұрын
Just when wet thought we don't deserve this a high quality educative content, you showed up and said we deserve it.
@AbdelhameedG
@AbdelhameedG 2 жыл бұрын
Thank you, Jack, You have the best Front-end channel on YT. Keep it up.
@fadehelix
@fadehelix 2 жыл бұрын
Thank you for this episode. In my personal ranking this is the best Context explanation I've ever seen
@tonyg_nerd
@tonyg_nerd Жыл бұрын
There is a ton to digest here. Will be watching this many times. Thanks Jack!
@braingamedotcom
@braingamedotcom Жыл бұрын
This is a high quality video with great content, something really refreshing on KZbin! Thank you very much 🙏
@EveryDayLifeWithDiabetes
@EveryDayLifeWithDiabetes 2 жыл бұрын
These series of mastering are amazing, Thank you very much man, I have learned lots of things from you and I owe you a lot :)
@olyvar
@olyvar 11 ай бұрын
So much great things covered in this video. Also a shout-out for passing the set state as a prop and using the callback to get the state value. I never thought of that before!
@orthostice
@orthostice Жыл бұрын
I think this video changed my life. Well, my frontend architecture but same thing right now.
@tabliqatchi6696
@tabliqatchi6696 Жыл бұрын
Amazing video Jack, I really enjoy watching the way you write and talk about code. Your channel is absolutely phenomenal.
@ogreeni
@ogreeni Жыл бұрын
Fantastic comprehensive overview! Love your videos Jack, been following you for a long time now.
@padawan.developer
@padawan.developer 12 күн бұрын
Hey Jack! Thanks for creating these kinds of content 🙏 I am in this stage of my career where I was positioned to coach jr developers and TBH as usual, impostor syndrome kicks in 😅 Hence, I know I need to put the work to shake off that and learning your contents helps me to have that confidence that I know I will be able to help them grow. I really appreciate it and I will pay forward the learning that I am getting from your contents 🙏
@Kelz_369
@Kelz_369 2 жыл бұрын
Wowww 👏 this is the most thorough explanation on state management I've come across on yt. Definitely sub to this channel. Thanks!
@prathameshmali3888
@prathameshmali3888 2 жыл бұрын
The comparison is really good, especially with the profiler. Didn't know that context will make those many changes to the tree. Thank you Jack for the awesome video!
@danbacila5257
@danbacila5257 2 жыл бұрын
Amazing content, I have been following the channel for a while now. As a Junior dev I can say that this channel motivates me to dive deeper into concepts and try them out on my own in a series of little projects. Keep up the good work and high quality content, Jack!
@tonystark4416
@tonystark4416 Жыл бұрын
Thanks! This was really helpful, even though I probably need to rewatch and read the docs a couple of times still
@Kahitar1
@Kahitar1 2 жыл бұрын
Insanely good video. Perfect level of detail and nice comparison between the different options. I learned a lot from this.
@spirostsakoulis797
@spirostsakoulis797 Жыл бұрын
Thank you so much for this great tutorial!
@psychobuddha5379
@psychobuddha5379 2 жыл бұрын
I am pretty impressed with how easy and clearly he manages to explain these concepts... Zustand sounds pretty interesting, I am definitely gonna try it.
@pendyaaa
@pendyaaa 2 жыл бұрын
This is a really really awesome video. Way Way better than all those tutorial style videos which only is a regurgitation of documentation. This actually deepens my understanding and give me ability to judge new state management tools for myself
@sumitwadhwa8823
@sumitwadhwa8823 2 жыл бұрын
Even some of the paid content out there is not as impressive as your content sir. Thank you so much.
@shike769
@shike769 2 жыл бұрын
Watched 2 of your videos. great content, very informative and very well edited. Thanks a lot for the effort
@jacobgoldenstreet6246
@jacobgoldenstreet6246 2 жыл бұрын
Wow. Fantastic tutorial. Your teaching is very clear. Super helpful. Thanks!
@lancerdonnie
@lancerdonnie 2 жыл бұрын
You really know your stuff. This is where I strive to be in the future
@JamesBond-mc7kl
@JamesBond-mc7kl 2 жыл бұрын
I just start career in React js and found the great video that is helpful for me
@noccer
@noccer 2 жыл бұрын
Terrific video, and very topical for my team at the moment as it would happen. Thank you as always ☘
@okiirawan9578
@okiirawan9578 2 жыл бұрын
easy peasy lemon squeezy, thats the master said. Another very informative contents, so excited to watch your videos 🔥🔥🔥
@igotbit9454
@igotbit9454 2 жыл бұрын
Love this channel!!!!!!!!!!! My go-to for React/JS stuff cause it covers more than just the basics which is what is needed in the real world env. Thx for the vids Jack!
@igotbit9454
@igotbit9454 2 жыл бұрын
PS. these days i'm using Apollo Cache/Reactive variables to pass state around instead of React Context but React context is great too.
@Peter911
@Peter911 2 жыл бұрын
Best in depth explanation and for free woow you are amazing .. Thank you
@petarkolev6928
@petarkolev6928 Жыл бұрын
Thank you for the wonderful video, Jack! I work in this industry for 5 years and yet I found all of your videos amazing and incredibly informative! All your videos are precious gems :) Only one thing I found a little bit hard to follow is the pace you go through your code in the editor. Personally, for me is a little bit hard to follow with that speed. May be for others is okay :) Thank you once again for the cool stuff you're showing to our fellow programmers :)
@yassinebi337
@yassinebi337 2 жыл бұрын
Great video, I’ve learnt a lot from your youtube channel, keep up the great work. Greeting from Morocco.
@eddiedotdev
@eddiedotdev Жыл бұрын
What's funny to me is that I see this video after seeing the newer "Do you NEED context?" videos :D
@marksalsbery9826
@marksalsbery9826 Жыл бұрын
Another great video….it’s amazing how many little things I learn mixed in with the major topic stuff. Thank you! Also, you are a great salesman for Copilot…the more I watch you write code the more I want it!
@mateuszkulesza8528
@mateuszkulesza8528 Жыл бұрын
Great video, Zustand looks very promising
@krazymeanie
@krazymeanie 2 жыл бұрын
Bruh this channel is a blessing
@teerapatprommarak2070
@teerapatprommarak2070 2 жыл бұрын
This is really really GREAT content Jack, thank you!
@stefan9599
@stefan9599 2 жыл бұрын
Great content as always. Thank you Jack!
@1Malak16
@1Malak16 2 жыл бұрын
Thank You! Briliant as always.
@haquocviet9253
@haquocviet9253 2 жыл бұрын
Great content and easy to understand. Thank you so much
@tarek_maza
@tarek_maza 2 жыл бұрын
An awesome resource for understanding state management in React!
@sarthak1317
@sarthak1317 7 ай бұрын
thanks for the ecommerce example, adding it to the project section in my resume. A full fledged ecommerce app with login logout and add to cart functionality 😎
@farzadmf
@farzadmf 2 жыл бұрын
VERY GOOD explanation, thank you!
@eleah2665
@eleah2665 2 жыл бұрын
The University of React State is back in session! Thanks Jack. I will want to get Mr. Kato's book.
@javierjrueda1722
@javierjrueda1722 2 жыл бұрын
Thank you so much for this video. Really useful.
@HeinekenLasse
@HeinekenLasse 2 жыл бұрын
Amazing video Jack, thanks for the effort
@王玉略
@王玉略 2 жыл бұрын
Thank you Jack
@Tarabass
@Tarabass Жыл бұрын
You did it again. I'm a developer for decades now and to be honest, I'm getting very annoyed by all those wanna be's out there. I'm trying to level up my knowledge about react (although I hate it) and every ninja is telling you to use context for global state. My guts feeling told me that is not a good idea. I don't want to rerender everything to update some fields. I even think that prop drilling is better. I follow your channel for a long time now and I'm glad you gave me the answers I was looking for. In a decent and professional way with proper knowledge and terminology. Thank you!
@sumanth3036
@sumanth3036 2 жыл бұрын
You just dont stop at a superficial layer. Thanks a ton!!!!
@mike-2342
@mike-2342 2 жыл бұрын
Your office environment is amazing.
@chrisprenn
@chrisprenn 2 жыл бұрын
Awesome video thank you so much!
@olabiranjoshua2860
@olabiranjoshua2860 2 жыл бұрын
This is such a rich content. Thanks for this Jack 👏🏽👏🏽👏🏽
@rdubb77
@rdubb77 Жыл бұрын
In the dark and dangerous world of React over complexity you are beacon of understanding and hope
@parassharma7041
@parassharma7041 2 жыл бұрын
I'm new to your channel, loving your videos great content and thank you for teaching with great easy way 😀
@ninabohm1535
@ninabohm1535 6 ай бұрын
Thanks Jack, very helpful!
@garywaddell6309
@garywaddell6309 Жыл бұрын
Hey Jack I have been watching video after video of yours. I am still in my deep dive of React and MFE's so would be curious if you had a video on managing State / Context via Module Federation, specifically around JWTs and how to control flow in MFEs for valid / invalid sessions. I'll keep looking through your library but this video along with every video you make is so informative. Thanks for publishing such amazing content!!
@sergeitinc
@sergeitinc 2 жыл бұрын
Thank you so mush Jack!
@Luxcium
@Luxcium Жыл бұрын
I have kind of learned HTML a thousand times over the years and skipped it because JS and CSS where so cool but HTML is so basic it is thought only to beginners I think you are the perfect person to teach us (i.e. We already know * "Hypertext" refers to links that connect web pages to one another, either within a single website or between websites*) you must do an HTML tutorial for people who knows the basics and give us the advanced tools to master HTML in the context of React and with the minimal CSS or styling possible for it to be interesting but focusing only on HTML (in the context of React probably)… 😅😅😅😅 I would love to get my HTML certification 😉😌😜
@AwakeningofAI
@AwakeningofAI 2 жыл бұрын
Thank you very much, sir. Great content.
@maksym7279
@maksym7279 2 жыл бұрын
Great! Thanks!
@Co-Monad
@Co-Monad 2 жыл бұрын
Thanks!
@doriandoussain1528
@doriandoussain1528 Жыл бұрын
My nextjs mentor, thx man
@tombyrer1808
@tombyrer1808 2 жыл бұрын
Thanks for the deep but not too deep dive in the various state managers; will help my on my next project! Also thanks for the chapters. :)
@ounicohenrique
@ounicohenrique 2 жыл бұрын
Great video, thanks.
@apresthus87
@apresthus87 2 жыл бұрын
I used to use Redux (Redux toolkit to be precise) and it's still used for one of my active projects but in my latest project where I created my own CMS from scratch I used purely React Context for local state management and it was a very good experience. It's not like I dislike Redux toolkit (which is a pretty big upgrade on regular Redux imo when it comes to dev experience), but it was really nice to not have to put in a ton of dev time for the project on just state management.
@ChristianNikolov-h3x
@ChristianNikolov-h3x 8 ай бұрын
one reason I favour the state managers over the context api is that you can access your state even outside your react components and sometimes thats a requirement. not sure if you can do something like. import contextApi from 'mycontextapi'; contextApi.value ... etc.
@jherr
@jherr 8 ай бұрын
You are correct. Making the data in the context available externally would be something you would have to implement. But there is `useSyncExternalStore` that you might want to look into. It's designed specifically to connect React components to external state managers. So if something off the shelf doesn't fit your needs there is that.
@hristoenev6733
@hristoenev6733 2 жыл бұрын
Really good content! Thank you.
@wisdomcube7789
@wisdomcube7789 2 жыл бұрын
Happy Valentines Day... also great content as always, thank you
@trenthm
@trenthm 2 жыл бұрын
Great video! Very educational
@jp0678
@jp0678 2 жыл бұрын
While I'm kind of already familiar with this concept, I still learn some new stuff here and there when you explained it. Thanks! By the way, what extension do you use for that autocomplete?
@jherr
@jherr 2 жыл бұрын
GitHub Copilot.
@jp0678
@jp0678 2 жыл бұрын
@@jherr Oh, I see. Thank you!
@juanpasten6077
@juanpasten6077 Жыл бұрын
Thanks so much for create and share
@Mostafaabobakr7
@Mostafaabobakr7 2 жыл бұрын
I love your channel
@jakemetz1742
@jakemetz1742 Жыл бұрын
Always amazing content that’s prepared so well. Curious, what tools you use to make your videos? Would love to dem to my team in the same format
@jherr
@jherr Жыл бұрын
I use ScreenFlow to capture the screen. If I drew on the screen then I was using ScreenBrush and a commodity Gaomon drawing tablet. And then for post production I use the Adobe Suite. Honestly through, in most cases you could get by the just using ScreeFlow and a decent microphone.
@zoaybk
@zoaybk 2 жыл бұрын
Amazing 🔥🔥🔥 thanks, as always
@shubhamlatiyan7972
@shubhamlatiyan7972 2 жыл бұрын
Best video so far on React Context
@karnellschultz6446
@karnellschultz6446 2 жыл бұрын
Great stuff as always
@omarakki705
@omarakki705 2 жыл бұрын
thanks
@armandsalle8447
@armandsalle8447 2 жыл бұрын
Really nice video! Thank you 🤯
@bielgaucho_real
@bielgaucho_real 2 жыл бұрын
I always asked why people use redux for everything, while they could achieve the same with context or simpler state management libs. This video is proof of it. Unfortunately using context takes a lot of care to avoid re-renders, but zustand demonstrate it can look simple and do the job.
@jherr
@jherr 2 жыл бұрын
Just remember to make sure you use selectors with your zustand hook. :)
@esraashahien3467
@esraashahien3467 Жыл бұрын
I am getting the error "RangeError: Maximum call stack size exceeded" and it is pointing at the "useStore" custom hook. This happens when I start using Context and context-selector. 25:38 Replacing Zustand With Context 29:37 When Context Updates Components 30:10 Context Using use-context-selector
@alexshepel9387
@alexshepel9387 6 ай бұрын
Nice!
@naturegoggle
@naturegoggle 2 жыл бұрын
Brilliant
@chauklaus2693
@chauklaus2693 2 жыл бұрын
Does use-context-selector support multiple contexts? I really like Zustand but then I realised it did not really fit in one of the projects I was working on as it didn't support multiple contexts, which was required for that project, unlike the context provider (please correct me if I am wrong) 🤕🤕
@jherr
@jherr 2 жыл бұрын
Use context selector is a plug-n-play exchange for createContext, so, yes.
@mwaqze
@mwaqze 2 жыл бұрын
Hello Jack, it's great to watch videos on react hooks mastery. Can you create a playlist with the title "React Mastering" with all the videos related to React Mastery please? That'll be really helpful. Thank you.
@mmahgoub
@mmahgoub 2 жыл бұрын
Jack is a magician!
@peteredmonds1712
@peteredmonds1712 2 жыл бұрын
Let's say I have multiple pages each with their own login and cart count. Can I create separate stores using a state manger for each page? Or is state strictly global in a state manager like Zustand? Thank you so much for these videos. Definitely the best out there!
@jherr
@jherr 2 жыл бұрын
I prefer to keep my state as localized as possible. So, yeah, if I were using Zustand I would have one Zustand store per page that needed it. And then maybe a central store for user identity and the JWT.
@GusGabriel
@GusGabriel 2 жыл бұрын
Amazing!!!
@ms.crawford1335
@ms.crawford1335 8 ай бұрын
Awesome
@ashish_prajapati_tr
@ashish_prajapati_tr 2 жыл бұрын
helping you to break KZbin algorithm
@kaykhan3517
@kaykhan3517 2 жыл бұрын
Should your store.ts hold functions to make api requests? e.g a refreshData function might need to fetch data from an api and save it to state? can this be done in a single function e.g a useRefreshData hook? Struggling to understand what are the limits of this store AND looking for examples/information around using state manager and facade layer. if you have any
@jherr
@jherr 2 жыл бұрын
A "store" is just a separation of concerns between UI and the business logic. It's limits are whatever you want in terms of architecture.
@ToddDunning
@ToddDunning 2 жыл бұрын
Jack I click "Like" on your vids before even watching them
@korkmazsalim
@korkmazsalim 2 жыл бұрын
Thanks Jack great content . Btw is there a solution in zustand for creating state slices and naming them so when project gets bigger we can inspect them by redux toolkit with the slice names ? ( i can combine at store but they are spreaded in toolkit).Thank you..
@jherr
@jherr 2 жыл бұрын
You make multiple stores. I think that's the basic idea. One store per, what you would categorize as a "slice".
Must Know React Portability Patterns
33:35
Jack Herrington
Рет қаралды 26 М.
Making React Context FAST!
33:34
Jack Herrington
Рет қаралды 88 М.
POV: Your kids ask to play the claw machine
00:20
Hungry FAM
Рет қаралды 21 МЛН
Новый уровень твоей сосиски
00:33
Кушать Хочу
Рет қаралды 4,7 МЛН
Please Help This Poor Boy 🙏
00:40
Alan Chikin Chow
Рет қаралды 9 МЛН
Миллионер | 1 - серия
34:31
Million Show
Рет қаралды 1,5 МЛН
Mastering React Memo
26:56
Jack Herrington
Рет қаралды 135 М.
Goodbye, useEffect - David Khourshid
29:59
BeJS
Рет қаралды 500 М.
Mastering React's useEffect
25:20
Jack Herrington
Рет қаралды 174 М.
Context API in react | get the concept
29:00
Hitesh Choudhary
Рет қаралды 58 М.
Thoughts About Unit Testing | Prime Reacts
11:21
ThePrimeTime
Рет қаралды 225 М.
You're Doing React Hooks Wrong, Probably
20:11
Jack Herrington
Рет қаралды 64 М.
Mastering React Batch Updating
10:23
Jack Herrington
Рет қаралды 44 М.
Picking From 20 React State Managers
35:18
Jack Herrington
Рет қаралды 85 М.
2 Years Of Learning C | Prime Reacts
22:24
ThePrimeTime
Рет қаралды 288 М.
POV: Your kids ask to play the claw machine
00:20
Hungry FAM
Рет қаралды 21 МЛН