Redux has previously been difficult to learn and implement, but it has also been the best known global state management system for React. The creators of Redux have addressed the difficulties of Redux by offering Redux Toolkit as the recommended modern way to implement Redux. Redux Toolkit abstracts away some of the previous difficulties and makes applying Redux to your project easier! If you are just getting started with React, I suggest completing my React JS full course for beginners first: kzbin.info/www/bejne/iIepcqx8jLRnndE
@eric_ng52532 жыл бұрын
I have been watching your tutorials and I will say it's great. yours came out in handy!... Do you have any on Redux API?
@DaveGrayTeachesCode2 жыл бұрын
@@eric_ng5253 this is my first on Redux and Redux toolkit. I previously have one tutorial in my react series on easy peasy redux which is a great implementation. I also cover the context API in that series.
@EndLessPain99992 жыл бұрын
what about useContext??? can't replace it? sorry for newbie questions
@BusinessWolf1 Жыл бұрын
It is not at all the best known global state management system for React. It's probabbly the worst.
@imraanali6410 Жыл бұрын
please provide the VS code theme name sir!!!
@mohammaddaudibrahim35016 ай бұрын
A mental model that has helped me understand the flow 1. State -> Object 2. Actions -> Events 3. Reducers -> Event Listeners 4. Dispatch -> Event Triggers
5 ай бұрын
This is an incredible alternative way to remember them. Thanks.
@mohamedyoussef88352 жыл бұрын
I agree with Nam Nguyen's comment... "I learned from udemy and from many coding channels on youtube, BUT you are one of the very best teachers, your teaching style is so simple and easy to understand."
@DaveGrayTeachesCode2 жыл бұрын
Thank you for the kind words, Mohamed! 🙏🙏
@southernsunreviews5932 Жыл бұрын
This demo is the first one in what feels like 100 youtube videos that work. Thank you so much!
@DaveGrayTeachesCode Жыл бұрын
Glad to hear it helped!
@anamatei2134 Жыл бұрын
Dave, I have now started to watch only your videos... Please don't ever stop sharing your knowledge with us. I love your teaching style, I learn so much from you. Thank you ! :)
@NamNguyen-oz8uj2 жыл бұрын
I learned from udemy and from many coding channels on youtube, BUT you are one of the very best teachers, your teaching style is so simple and easy to understand. Thank you very much Dave, look forward to all of your new videos 🎉🙏✨
@DaveGrayTeachesCode2 жыл бұрын
Thank you for the kind words, Nam! 🙏💯
@chisangamumba29612 жыл бұрын
Ain't that the truth. 🔥👍
@Proxamm2 жыл бұрын
Dave, you have quickly become my favorite KZbin channel to learn from. Your pace, tonality, and very well structured lesson context is beyond amazing. I've learned so much from you and have digested your content very easily. Thank you for all you do!
@DaveGrayTeachesCode2 жыл бұрын
Thank you for the kind words, Andres! 🙏🙏
@cmefindaname2 жыл бұрын
Your teaching style is amazing! Thank you for the intro to Redux Toolkit!
@DaveGrayTeachesCode2 жыл бұрын
You're very welcome! 💯🚀
@deoxzyKun2 жыл бұрын
by far the best video on understanding redux rn! amazing work brother
@DaveGrayTeachesCode2 жыл бұрын
Thank you for the kind words! 🙏🙏
@CuteFunnyVideos20 Жыл бұрын
I just dont know why I am seeing this right now. I have wasted a lot of time trying to understand redux toolkit from other tutorials but I got more confused. But everything makes sense to me now. U are a gem of a teacher. Thank you for all you do. After watching ur node js course, I fell in luv with ur teaching style. Thank u Sir❤
@DaveGrayTeachesCode Жыл бұрын
You're very welcome!
@journeyoftulsi4 ай бұрын
Simplest tutorial ever on redux! Thanks Dave!
@criztiandev2 жыл бұрын
Hi, dave it's been a month since. I remember your Js course and it helps me a lot in my web development journey. I also finished your react course and not. I want to finish this redux course for you. I have recommended my friends to watch your tutorial because you teach so simple, direct, and easy, especially to beginners. Mabuhay ka Dave
@DaveGrayTeachesCode2 жыл бұрын
Thank you for the kind words, Criztian! 🙏 I am glad I have helped you on your journey! 🚀
@codingispower1816 Жыл бұрын
Great intro. Can't wait to do your next redux tk vid!
@FloraSora2 жыл бұрын
Just two notes for you. 1) I LOVE how you specify what shortcuts you're using! We're beginners, we don't know your shortcuts! Thanks for being one of the first and few who actually spell out their hotkeys in tutorials like these. 2) Great tutorial, I feel my brain expanding. Great note on progress rather than perfection. That's the ticket. That's the energy we need for the new year, 2023.
@DaveGrayTeachesCode2 жыл бұрын
Glad it was helpful!
@yumisunday Жыл бұрын
This is great! i was falling asleep reading the react-redux documentation and not looking forward to checking out redux-toolkit but this is a great tutorial thanks!
@donaldballowe88552 жыл бұрын
ok. I just looked at your github repo for the useReducer example. I have to say I have struggled with redux and useReducer, and just like that as soon as I see your repo, I can actually see what is happening. I have looked at soooo many different tutorials and I swear they just confuse me more. You are an amazing teacher, thank you Dave!!
@DaveGrayTeachesCode2 жыл бұрын
Thank you for the kind words, and glad I could help! 💯
@TannerBarcelos2 жыл бұрын
Use it at work, learned a while back + learned some RTK recently. Used it on a project of my own actually. But, it still somewhat slips over my head here and there. Going through these videos has been the nail in the coffin for understanding it all. You wonderfully explained it. Your style resonated with me - straight to the point, technical, and not completely easy.
@DaveGrayTeachesCode2 жыл бұрын
Thank you, Tanner! Glad I could help! 💯
@jaymartinez311 Жыл бұрын
I’ve watched 12 minutes of the video and I’m already understanding. I got scared of redux for years. Went to vuejs and got a job but after all these layoffs (including myself) I had to comeback to react 😂 there are to many jobs right now in react for DOD especially surprisingly (Army Vet) that it’s my way back in the game. 💪🏾 I want to thank Dave for providing this for free! The job market sucks for Jr’s like me (i’m 40. discovered tech late) so I appreciate the content! I’m gonna go through your series and hopefully I get back on track!
@DaveGrayTeachesCode Жыл бұрын
Thanks for sharing and glad to hear I'm helping!
@hamzahahmad16702 жыл бұрын
It's awesome how the tutorial was thorough yet concise. Great stuff
@DaveGrayTeachesCode2 жыл бұрын
Glad it helped!
@CTILET2 жыл бұрын
Ooo thank you alot! When i began to study something you post a new video about it! It is amasing!
@DaveGrayTeachesCode2 жыл бұрын
Good timing! 💯
@georgejoseph26012 жыл бұрын
This is pretty neat. Got the whole idea down while watching it at 2x. You’re an astounding teacher. Thanks.
@DaveGrayTeachesCode2 жыл бұрын
Glad it was helpful!
@johnacsyen Жыл бұрын
'Strive for progress over perfection', I really like this quote. This video explains concisely about Redux toolkit. Used to dislike Redux
@ryanmamboudjemtchemeu4289 Жыл бұрын
Thank you Dave Gray. I've been struggling with redux toolkit before I found your video
@DaveGrayTeachesCode Жыл бұрын
Glad it helped!
@rishabhtayal6607Ай бұрын
Well explained, worth every sec of this video.
@alirezahekmati76322 жыл бұрын
thank you! your content is GOLD! waiting for next js tutorial. 💥🔥
@DaveGrayTeachesCode2 жыл бұрын
Thank you! 🙏 I am excited about starting a NextJS series this year. 💯🚀
@artiliciousbysejal4862 Жыл бұрын
was actually struggling with redux toolkit, and this video explained everything so well! Thank you👍
@arasefe2 жыл бұрын
A part from the tutorial, loved the shift+alt+down tip to copy the whole block below. Thanks
@DaveGrayTeachesCode2 жыл бұрын
Glad it helped! 💯
@ajayramola9386 Жыл бұрын
This was the best redux tutorial thanks Dave. You are a great teacher!
@DaveGrayTeachesCode Жыл бұрын
Thank you!
@MohammadWaseem-po2kq8 ай бұрын
finally i found A gem, I was loooking for this tut..
@Kamim782 жыл бұрын
Excellent style of teaching. Thanks Dave!
@DaveGrayTeachesCode2 жыл бұрын
You're welcome, Kamran! 💯
@lucasiramos2 жыл бұрын
Amazing video! Can't wait to watch the whole series.... Thanks a lot for this work!
@DaveGrayTeachesCode2 жыл бұрын
You're welcome!
@ajayshekhawat22922 жыл бұрын
you deserve many more subscribers learrned many javascript concepts from your video and best video on redux thank you
@DaveGrayTeachesCode2 жыл бұрын
Thank you, Ajay!
@penguincoding13532 жыл бұрын
Thanks Dave that's super cool tutorial. redux-toolkit is a brand new from redux. This tutorial quite rare in youtube and you explain it in a simple way very easy to understand , You gotta one subs from me...
@DaveGrayTeachesCode2 жыл бұрын
Glad it was helpful! 💯
@DineshVutukuru2 жыл бұрын
Just when I thought I couldn't find any better videos, I find your videos.
@DaveGrayTeachesCode2 жыл бұрын
Thank you for the kind words, Dinesh! 💯
@syedabuthahira80532 жыл бұрын
It was wonderful session which I have never watched in any channel and that 20 mins content was really made me to fully concentrated until the end of the vedio. Thank you so much for making this kind of vedio ❤️
@DaveGrayTeachesCode2 жыл бұрын
Glad you enjoyed it!
@andrewclarke69162 жыл бұрын
At last! React Redux Toolkit gets the Dave Gray treatment. Maybe I'll finally get to understand Redux thoroughly this time around.
@DaveGrayTeachesCode2 жыл бұрын
I hope it helps!
@enriquefavila38472 жыл бұрын
Thank you so much man, I just discovered your channel and it is fantastic! Keep it up!
@DaveGrayTeachesCode2 жыл бұрын
Glad you enjoy it! You're welcome! 💯🚀
@jenso4132 жыл бұрын
a lot of channels do this, but be careful calling increment and decrement actions. They are actually action creators. It might not seem like it matters but it was really confusing to me at first, so I just wanted to clarify for anyone else confused. That is the reason why at 12:40 you call the functions to dispatch the action. You need to get the return value of the action creator, an action object, and then dispatch that
@DaveGrayTeachesCode2 жыл бұрын
I think if you continue the series, you will hear me clearly define the action creators. It is a lot to take in as someone gets started with this. Hopefully, the series brings it all together. 💯🚀
@Daniel-nb3kk2 жыл бұрын
Redux has never been so sexy to use before - thank you for the tutorial!
@DaveGrayTeachesCode2 жыл бұрын
You're very welcome!
@ЂорђеЈеленковић2 жыл бұрын
You are Dr. of this game! Please cointinue with everything about Redux. :)
@DaveGrayTeachesCode2 жыл бұрын
More on the way! 🚀
@arcosd632 жыл бұрын
Hey Dave, this was excellent. Extremely well done.
@DaveGrayTeachesCode2 жыл бұрын
Thank you, David! 💯
@pitsonborellio74632 жыл бұрын
You teach so well. woah, you make things so simple to understand
@DaveGrayTeachesCode2 жыл бұрын
I appreciate that!
@regilearn21382 жыл бұрын
Wow,are you reading mind,just searching for thunk middleware,video uploaded,Thanks Dave,how many video yet to come on this topic
@DaveGrayTeachesCode2 жыл бұрын
Glad to hear it! This will be a short series - guessing 4 to 6 videos - redux thunk coming very soon.
@aya22222 жыл бұрын
Very clear and concise explanation!! Thank you so much!
@DaveGrayTeachesCode2 жыл бұрын
You're very welcome!
@techadventures66452 жыл бұрын
I dont know yet everything I learned on React was smooth, short and simple. Never a lesson over 20 mins. But with redux ... only courses likes 2 hours minimum. I really hope this will save me time later, cause thats a huge time investment.
@DaveGrayTeachesCode2 жыл бұрын
For smaller projects, I don't recommend Redux, but many want to know it because it is frequently used with enterprise / large projects.
@rfryanfavour43692 жыл бұрын
You just taught me more than redux toolkit thank you sir
@DaveGrayTeachesCode2 жыл бұрын
You're very welcome!
@omarakki7052 жыл бұрын
You are one of the best teachers dave
@DaveGrayTeachesCode2 жыл бұрын
Thank you!
@tanercoder19152 жыл бұрын
are you reading my mind? I am getting ready for my interview where I expect a lot of questions about redux toolkit... and I am one day in learning redux... this video will be extremely helpful!
@DaveGrayTeachesCode2 жыл бұрын
Glad I could help!
@luchonieves2 жыл бұрын
Top tier tutorial! Thanks for the video man, it's awesome.
@DaveGrayTeachesCode2 жыл бұрын
Thank you for the kind words! 🙏🚀
@zachariayussuf7652 Жыл бұрын
Awesome content , love your teaching method.
@voice_famous_books430111 ай бұрын
Thanks, best teacher for react:)
@noir43562 жыл бұрын
Let's make it simple. You've helped me landing a job. Thank you :)
@DaveGrayTeachesCode2 жыл бұрын
Great to hear! This is the feedback that lets me know I'm on the right track. Thank you for sharing!
@dharmeshgohil93752 жыл бұрын
Loved all your tutorial
@DaveGrayTeachesCode2 жыл бұрын
Glad to hear it - thank you! 🙏💯
@jacerchetoui7092 жыл бұрын
Man, you are a blessing, thank you !!
@DaveGrayTeachesCode2 жыл бұрын
You're welcome!
5 ай бұрын
Great video Dave!!! 🎉🎉 Could you please make the same tutorial using TypeScript? It would be extremely helpful
@edwilsondasilva99462 жыл бұрын
I am Brazilian. Sorry for some language errors. Thank you for sharing your knowledge.
@DaveGrayTeachesCode2 жыл бұрын
You're welcome!
@Miles09 Жыл бұрын
Awesome video as always.
@DaveGrayTeachesCode Жыл бұрын
Thank you!
@danieljing93192 жыл бұрын
nice stuff, awesome always, thanks Dave
@DaveGrayTeachesCode2 жыл бұрын
You're welcome, Daniel! 🙏
@jotarz962 жыл бұрын
Thanks for this Redux tutorial !
@DaveGrayTeachesCode2 жыл бұрын
You're welcome, Jonathan! 💯
@marcostevanella60512 жыл бұрын
Amazing, as always.
@wendixiao92752 жыл бұрын
Thanks for the fantastic tutorial!!
@DaveGrayTeachesCode2 жыл бұрын
You're welcome! 💯
@willyhorizont86722 жыл бұрын
Thanks again dave, yesterday I was about to ask yo about using redux toolkit in useRefreshToken, useAxiosPrivate and useLogout hooks. I can't wait you make video for that also ;)
@DaveGrayTeachesCode2 жыл бұрын
Thank you, Willy! Quick note on your question about combining Redux with the login strategies - Redux is the global state management. You would switch the state that needs to be shared throughout the app - like the auth state - to a Redux store and associated slice reducer. This is a good idea for a follow up video in that series. 💯🚀
@willyhorizont86722 жыл бұрын
@@DaveGrayTeachesCode yes I have remove the context api and refactor the hooks and use redux toolkit instead and its all works fine but still Im not sure if I code it the right way especially in the useAxiosPrivate. And yes I think its gonna be great content for next video :)
@yonnie05212 жыл бұрын
thanks for the great video, very helpful. Im pretty confused the part at 9:08, that you import counterReducer from the counterSlice file, but i couldn't find the counterReducer in that file. would you mind to give me a hint? thanks!
@DaveGrayTeachesCode2 жыл бұрын
Hi Yonnie - I'll try to help. If you go to the resources link in the description and view my source code for lesson 1, please look in the counterSlice file. At the very bottom of the file, you should see "export default counterSlice.reducer" ..The counterSlice we create above in that file has a reducer, and that is what is exported here and then imported at 9:08 as you referenced.
@ILohamLivingstone Жыл бұрын
the best programmer teacher ever
@Norfeldt2 жыл бұрын
A very fine walkthrough 👍👍👍 thank you very much for sharing this. In my opinion there is still a lot of code to write with redux compared to some alternatives (react context, valtio, etc.). Couldn't stop thinking that the dropping the named exports could "reduce" some of the lot of code writing that is needed.
@DaveGrayTeachesCode2 жыл бұрын
Thank you! Yes, you are correct. We often give simple examples to show how Redux works, but unless the project is large, using something like the Context API or (in my opinion) Easy Peasy Redux is easier to implement. I do like the changes that have been made with Redux Toolkit vs the old standard of Redux.
@Norfeldt2 жыл бұрын
@@DaveGrayTeachesCode yes, and slice seems like a much better name (thank you for explaining what that is all about). Imagine that using it with typescript would also improve the DX.
@ZawCodes2 жыл бұрын
This looks brilliant.
@syednoohu86922 жыл бұрын
Those who wonder what createSlice will return ? , which will return an object that looks like: { name : string, reducer : ReducerFunction, actions : Record, caseReducers: Record. getInitialState: () => State }
You even had a motivational speech at the end!! damn this channel is fire 🔥
@DaveGrayTeachesCode2 жыл бұрын
Thanks!
@Hero1Love211 ай бұрын
Thank you 🙇🏾♂️ 🙏🏾
@azizbekibnhamid6422 жыл бұрын
amazing course!
@tiril19912 жыл бұрын
Amazing video, thank you so much!
@DaveGrayTeachesCode2 жыл бұрын
You're very welcome!
@TheMaKaBaY Жыл бұрын
Nice tutoriel !
@jFernandoZ Жыл бұрын
Nice Redux Toolkit overview! Bit Refreshing...!
@mohammadmirzaei87162 жыл бұрын
Awesome! Thanks! please make some videos about integrate test and e2e test in react with typescript
@DaveGrayTeachesCode2 жыл бұрын
Coming up later this year! Thank you for the request! 🙏🙏
@younesseelkars8149 Жыл бұрын
Good quality content , thank you
@hardwired662 жыл бұрын
thank you Sir for react redux tutorial help me alot, maybe next react testing tutorial.
@DaveGrayTeachesCode2 жыл бұрын
You're welcome! 🙏
@saidafzalabdusattorov60372 жыл бұрын
Thanks , i hope you to make tutorial about Typescript ! Good luck ✊✊✊
@DaveGrayTeachesCode2 жыл бұрын
Thank you for the request!
@mohamedtarek51832 жыл бұрын
you're the king of redux😀
@DaveGrayTeachesCode2 жыл бұрын
I am far from the king, but thank you for the kind words! 😀🙏
@sonamohialdin33762 жыл бұрын
Awesome tutorial about redux thank you
@DaveGrayTeachesCode2 жыл бұрын
You're welcome!
@dipanshusingh2 жыл бұрын
Love your videos.
@DaveGrayTeachesCode2 жыл бұрын
Thank you!
@AndrewLapteff Жыл бұрын
best tutor ever!
@DaveGrayTeachesCode Жыл бұрын
Thank you!
@nicolasarcelin3220 Жыл бұрын
Spectacular, thank you
@DaveGrayTeachesCode Жыл бұрын
Thank you!
@mosqutio882 жыл бұрын
Hey Dave! Which VSCode extension you installed to show you the opening and closing () ? Reference: 2:10 time mark and code lines 3 and 7. Thank you!
@DaveGrayTeachesCode2 жыл бұрын
This is built in to VS Code. Open Preference > Settings > search for "Bracket Pair Colorization" and enable it.
@hermangeku746110 ай бұрын
Very greate, i learn more things
@coder2002 жыл бұрын
need full playlist as soon as possible
@DaveGrayTeachesCode2 жыл бұрын
Thank you - the playlist will be added to weekly until complete. 🙏💯
@BaoNguyen-yy3vw2 жыл бұрын
great video, thank you so much
@DaveGrayTeachesCode2 жыл бұрын
You are welcome! 🚀
@aWebExpert2 жыл бұрын
Amazing explanation... thank you! But it's frightening when I see such a big amount of code you write in such a short time... Impressive! I recommend everyone to follow all your videos, it's an invaluable source of knowledge! Although it's accentuating the imposter syndrome 😅🤣😂
@DaveGrayTeachesCode2 жыл бұрын
Thank you 🙏 Yes, this Redux series is an advanced topic and pace 💯
@tamerlanermanbet63312 жыл бұрын
Beautifully Video!
@DaveGrayTeachesCode2 жыл бұрын
Thank you very much! 🙏
@loussifchiheb8309 Жыл бұрын
thanks for the great video ❤ may be you can do a redux toolkit with typescript vide and that wil be really apperciated and helpful nad thanks in advance ❤
@harag9 Жыл бұрын
Great tutorial, thanks. you mentioned at the start the "toolkit" basically replaces the original redux and it's no longer needed, then later on you installed both as the "Provide" is still react-redux, So a little confused. do we still need to add both. I guess so.
@mariusngaboyamahina91902 жыл бұрын
This is an amazing tutorial. Thank you! Are you planning to do videos for RTK Query as well?
@DaveGrayTeachesCode2 жыл бұрын
Yes, I am. I cover all of the foundational skills for Redux Toolkit in the series first and RTK Query will finish out the series.
@dilucsuki84702 жыл бұрын
I got incredibly confused with the examples in docs, I hope this helps me understand how to add async state
@DaveGrayTeachesCode2 жыл бұрын
Later in the series, async thunks are covered. Even later, RTK Query is covered. Both are ways to issue async queries and update state.
@dilucsuki84702 жыл бұрын
@@DaveGrayTeachesCode ty! I'm already in that part!
@siddiqahmed32742 жыл бұрын
Sir your content is great. May God bless you for all the hard work you put in making these tutorials. Sir i have a request to make, though it is out of scope of this video... If you would make a tutorial how to use module css and global css together... For example, i have my base styling and utilities done in one style sheet. I want to use them throughout the app. But also i want to use some component specific styles... Is it even possible or we have to Duplicate the css? It would be great if you make a video over it or suggest some article to read. Thank you sir❤️
@DaveGrayTeachesCode2 жыл бұрын
You can use more than one CSS stylesheet. For example, your index.css is at the top of the cascade and will apply to all. You can make a module stylesheet that will come after in the cascade and apply to a specific module and any child modules within the specific module.
@siddiqahmed32742 жыл бұрын
@@DaveGrayTeachesCode hmm... I'll try that. Thank you ❤️
@afsertanveer75 Жыл бұрын
8:56 how we imported counterReducer here whereas there wasn't anything like that from counterSlice file. Can anyone explain it?
@gaudenciojiron7197 Жыл бұрын
Very nice course
@luisalbertovillarortiz7424 Жыл бұрын
First things first, Thanks for sharing!! Dave sorry, in/at/on 6:28 why do you export counterSlice if you never use it ??
@DaveGrayTeachesCode Жыл бұрын
You're welcome! This tutorial is based on the Redux Essentials tutorial in the docs and it is there - but you can remove if not needed. Using ES7 snippets, I write most of my functions with export - in case I need to export. Reference: redux.js.org/tutorials/essentials/part-2-app-structure#creating-slice-reducers-and-actions
@luisalbertovillarortiz7424 Жыл бұрын
@@DaveGrayTeachesCode Sorry, it is possible I was not enough clear. with my doubt. const counterSlice = createSlice({ //Some code here... }); in this part it seems we dont have to export counterSlice...
@Akshara-k3g Жыл бұрын
thanks Dave
@jomaramomas76822 жыл бұрын
Hey man thank you very much for this, really learned a lot. Btw, do you plan on adding a video about integrating with redux-saga?
@DaveGrayTeachesCode2 жыл бұрын
Thank you! 💯 Yes, I want to do some tutorials on redux-saga in the future! 🚀
@jomaramomas76822 жыл бұрын
@@DaveGrayTeachesCode Looking forward to it!
@hatem.tommy.lamine2 жыл бұрын
I like your videos a lot and have watched most of them :) can you make a Nextjs+nextauth+JWT Tutorial ? I still can't wrap my head around the authentification with Nextjs
@DaveGrayTeachesCode2 жыл бұрын
Thank you very much! 🙏 I am looking forward to working with NextJS this year. When I do, I know I will dive into the JWT auth for it also. 🚀