Hope you enjoyed the video! I also have a really cool and unique course that will teach you way more than this video. You'll learn how to build an actual complex project with React. It's called "Project React" and you can find it at cosden.solutions/project-react. Also, I have a free weekly newsletter called "Import React" with tutorials, news, and cool stuff about React! You can sign up at cosden.solutions/newsletter?s=ytc
You're an awesome teacher, i legit paused a complicated redux tutorial i was watching yesterday when i saw your post notification for this one and i'm glad i did. Great work bro
@@cosdensolutions you’re welcome! I don’t know if you have tutorials on NextJs but if you don’t pls consider making one. Your style of teaching is really great and easy to follow along🫡
@@cosdensolutions Hi @cosdensolutions @cosdensolutions ,Thanks . As you said , if redux copy the whole state and update the modified proerty in the copied state and replace the while orginal state , my doubt is , do we get performance issue , if our application has more state variable ?
Absolutely, amazing. 'Complete Tutorial' is perfect match for your video. You literally talk about everything we can use redux-toolkit in a real project right now. Thanks 👍
Tried like 4-5 courses last 2 days trying to understand everything not withing 4 hours long course, and it seems that this one solved all my wonders about Redux. Thank you man, I appreciate that much
Literally I am building my tech stack based on your videos You teached React query i learned it You teached Cypress i learned it Now you teached redux with RTK ofcource i will add that too
haha damn, great to hear! The next step is to know and understand which tools to choose for which project, as some might be better suited for specific use cases!
This is probably the only video on TH-cam which explains how to use redux toolkit with Typescript clearly. I just subscribed and am looking forward to more of your content in the future!
@@cosdensolutions next video should be "Why you dont need to use Redux in 2024". Even Dan Abramov, one of the creators of redux, writes in his twitter that we almost always should not use redux. And its true. Lol, this video is a waste of time, sorry @cosdensolutions
@@gubatenkov companies still use Redux, and have applications built with Redux, so you'll need to know it for jobs even if you don't use it in a new application
There's no difference between his teach skills and that of an Indian teacher: Pragmatic Straight to the point Step by step Making eveything make sense to the learn Like unveiling a wrap. I'm hooking to your channel now henceforth.
Really helpful. Thank you! Im a pretty experienced FE dev who has never used Redux at my previous role(we used zustand and everything else was handled through services) and I have a technical interview tomorrow, they mentioned redux and I was like yowzers I need a refresher. Now I feel like I get it!
Great video! I can't say I won't have to watch this over again a couple of times before it sinks in, but it is one of the best concise explanations of react & redux! Ciao ciao!
GREAT TUTORIAL BRO!! I was amazed by how can it be so clear for such complex concepts!! I love your speak voice, also love the sound of your keyboard! Everything is just so PERFECT!! Thank you!!
thnx buddy! the latest update of redux made all the past tutorials very hard to follow and I was stuck on this for the last 2 days, your video did a fabulous job of explaining the builder❤❤
Incredibly good and clear explanation. I've been struggling to understand Redux for quite some time. Indeed, no need to watch any other videos about Redux Toolkit after yours. I'm happy I could understand everything. Finally! Thank you!
Thank you alot. I used to code with Angular and had to learn the redux equivalent. I watched a few videos but all of them are really bad. This video explained it so simple
Thank you for this video. U certainly did explain quite clearly how RTK works and the best thing is, u even included how to work with typescript and thunks, which so far I've not seen other videos do. My opinion after watching this, and also after reading what Dan Abramov wrote (what somebody above me said), is that sometimes we will still need redux for the fact that the native Context API does not sufficiently cover all use cases for state management. Therefore knowledge of redux is still good to have in 2023/2024 🙂
yeah totally, Redux is still valuable and will be for a long time. There are a ton of new projects choosing to use it daily because it's really good. Imo context isn't good enough to cover most state management use cases. You really need a dedicated library for that!
Damn, you took my understanding of Redux from 5% to 90% in one session. Not only that, but by showing the redux toolkit you gave me ideas on how to redo the state of an application I am building! Thanks a lot, subscribed of course
Great video, explained everything in a easy yet straight forward way. Been able to implement Redux for the first time in a simple Todo app just by watching your video. Thanks again!
great video. I've always liked and tried to use redux toolkit since the first time I came across it! I have one question though, I'm planning to add redux toolkit to deal with states in the react application I'm working on but it's not completely clear how to deal with HTTP responses from the backend services, what I mean by that is: let's picture a scenario where I call a service layer/endpoint from inside the async thunk action, is it ok for me to just return its response back to the JSX component that dispatched that action? or is it better if I simply use its response and deal with it inside the redux slice and use states to update the user interface (with a toast error message, let's say)? (consider that I'm not using RTK query to deal with HTTP requests, instead I'm gonna have a service layer with classes that will receive a axios instance and then make the HTTP calls)
Thanks for the video, Sir. This was very clear and easy to follow. You've now earned yourself a new Subscriber! I'm looking forward to watching other topics you cover around React.
Excellent thank you very much for this video! I suggest categorizing the video, it takes a while, but saves me as a viewer lots of time watching things I already know...
Been using RTK for the better part of the year, with it all being a bit hazy in my head, mostly using RTK Query and the caching! You’ve just mind blown me with this basic, but very clear, tutorial. I the spirit of the store and data fetching. Do you think you could make a video on persisting the data? (Unless you’ve already got one on your channel!) thanks a bunch, plus, I no longer feel alone with keyboard typing issues! 🤪
hahaha the keyboard typing!! Yes I might look into persisting the data with redux, I think it's as simple as using redux-persist but might be worth for a tutorial!
One of the rare easy to understand explanation, which also explain what, why and where different Redux methods and hooks should be used and their syntax. Can you please make another video about Redux middleware?
Apart from the great explanation, the fact that some people seems to think this "paradign" is cool blows my mind. Am i the only one who thinks this is overcomplicated for no reason ?
Thank you very much for the video. Out of many channels that I watch, I find that I get the greatest understanding and value out of yours. Please keep going! Another request is, could you make a video discussing different middleware libraries for Redux such as Sagas and Thunk?
Been going through all your videos to learn react and found them really great to follow, left this one as the project I took over at work doesn't use redux, finally got around to watching it. Makes me wonder why we don't use redux as it looks really good, sort of state management (we use context) and useReducer hook rolled into one. Just to confirm, when using "useState" vs useRef, the use state forces a redraw but useRef doesn't.... So what is forcing the redraw -- is it whenever you call "dispatch(...)" so just like when using useState. Also - great tip at the end, thanks for the heads up on the extension :)
Without Redux, useState is causing a re-render and useRef isn't. With redux, it's when you dispatch the action. It then goes to the store which gets updated, and components receive the updates through the selectors if they're listening. This all works through context btw, using the Provider from react-redux, so it's pretty similar! I'm not sure why people don't use Redux too much. It used to be a lot more complicated in the past, but now with RTK it's so much better. But sometimes it may be overkill for a project, it depends. I really like it as well!
17:10 is it that Redux Toolkit is letting you write mutating code and doing some magic behind the scenes, or is it actually that the parameter "state" is a clone of the current state so you can change however you like ?
a little confusing, why they are called as "actions" here 18:49 and not "reducers"? As we can clearly see they are defined inside of the "reducers" object so they should have been called "reducers"
They are not the functions defined in the reducers, even if they have the same name. They are actions that then trigger those reducere. You can see this by the arguments both take. One receives the state, the other is a function you define
@@cosdensolutions confusion gone thanks for the explanation. Been watching your videos and sometime back and forth just to ingrain the valuable concepts.. I'd say you're by far the best in explaining things 💪
Really nice tutorial. Curious how you handle redux sagas now in the latest server component update where the store needs to be rebuild. Thinking of asynchronous requests for “get user notifications” or something along those lines.
I have been struggling for months to make sense of the concepts of store, actions & reducers . Honestly your video here has finally helped me crack the code.I actually was led to your TH-cam channel from your TikTok page.Thanks for the very incisive tutorial.You're a rare breed!!! However I am still struggling to run the Social Echoe app locally.I guess it has to do with dependency version issues??
Thank you for the kind words! I'm really glad you finally understand that! And yes a lot of people have mentioned that with social echo. Not too sure what's going on there 🙁
Hope you enjoyed the video! I also have a really cool and unique course that will teach you way more than this video. You'll learn how to build an actual complex project with React. It's called "Project React" and you can find it at cosden.solutions/project-react. Also, I have a free weekly newsletter called "Import React" with tutorials, news, and cool stuff about React! You can sign up at cosden.solutions/newsletter?s=ytc
You're an awesome teacher, i legit paused a complicated redux tutorial i was watching yesterday when i saw your post notification for this one and i'm glad i did. Great work bro
Damn, thank you for the kind words that means a lot! Really glad you found this useful ☺️
@@cosdensolutions you’re welcome! I don’t know if you have tutorials on NextJs but if you don’t pls consider making one. Your style of teaching is really great and easy to follow along🫡
hey, the same over here
@@cosdensolutions
Hi @cosdensolutions
@cosdensolutions ,Thanks . As you said , if redux copy the whole state and update the modified proerty in the copied state and replace the while orginal state , my doubt is , do we get performance issue , if our application has more state variable ?
I also impressed how he memoizes, does, and casts things in numerous videos, I'd rank him in a row with Shwarzmuller
Absolutely, amazing. 'Complete Tutorial' is perfect match for your video. You literally talk about everything we can use redux-toolkit in a real project right now. Thanks 👍
Tried like 4-5 courses last 2 days trying to understand everything not withing 4 hours long course, and it seems that this one solved all my wonders about Redux. Thank you man, I appreciate that much
Glad to hear it!
Literally I am building my tech stack based on your videos
You teached React query i learned it
You teached Cypress i learned it
Now you teached redux with RTK ofcource i will add that too
haha damn, great to hear! The next step is to know and understand which tools to choose for which project, as some might be better suited for specific use cases!
@@cosdensolutionsplease next video about the best tech stack in 2024 frontend+backend+database
@@gaganyt7861 what about ReactJS/MaterialUI + C#/.Net + MSSQL or MongoDB?
You have mad teaching skills. You made me understand Redux in just one video. Thanks man.
This is probably the only video on TH-cam which explains how to use redux toolkit with Typescript clearly. I just subscribed and am looking forward to more of your content in the future!
Thank you for the kind words! Glad you find the videos useful ☺️
@@cosdensolutions next video should be "Why you dont need to use Redux in 2024". Even Dan Abramov, one of the creators of redux, writes in his twitter that we almost always should not use redux. And its true. Lol, this video is a waste of time, sorry @cosdensolutions
@@gubatenkov companies still use Redux, and have applications built with Redux, so you'll need to know it for jobs even if you don't use it in a new application
@@hasaniqbal233hm, u are absolutely right
@@hasaniqbal233 still valuable even in new apps. Tons of new projects use it daily. It's a great tool, but only with TK imo
You not only did this perfectly but you even left the name of the vsCode theme you are using in the description. 🙃
Don’t know redux was so easy until I watched this video. Thanks
No Extra Talks just straight to the matter , well explained sir, Thanks a Lot..
Thank you man - I love how you give context and make it all seem simple. Other resources turn it into a head fck.
The best redux tutorial on internet! At first it may sound confusing, but by around 1/3 of the video everything clears up
By far the best example, hands down. Very well done. I have not touched Redux since 2019 and this video was just what I needed to get back to it
You said that with this video we would understand redux and it would not be necessary to watch more videos. You did not disappoint!
You definitely got mad teaching skills, man. You really do explain every little thing perfectly. Good job.
that was so clean and smooth man , appreciate your effort
There's no difference between his teach skills and that of an Indian teacher:
Pragmatic
Straight to the point
Step by step
Making eveything make sense to the learn
Like unveiling a wrap.
I'm hooking to your channel now henceforth.
Really helpful. Thank you! Im a pretty experienced FE dev who has never used Redux at my previous role(we used zustand and everything else was handled through services) and I have a technical interview tomorrow, they mentioned redux and I was like yowzers I need a refresher. Now I feel like I get it!
Great to hear! Actually filming the zustand equivalent video this week!
I've been waiting so desperately for this...
You're a fantastic teacher. Thanks for this awesome video!
Bravo. You lay this out like docs do and provide some foundational term definition and concept explanation before applying. Bravo.
too good ...my first redux store i could create just because of you .As offical redux documentation is little difficult to understand . Thanks a lot.
Great video! I can't say I won't have to watch this over again a couple of times before it sinks in, but it is one of the best concise explanations of react & redux! Ciao ciao!
At this point i am now convinced you are a Godsend React teacher ..
This is the best redux tutorial. Explained everything developer need :) Thank you!
I've seen lots of tutorials but the way you explained everything is just amazing.
GREAT TUTORIAL BRO!! I was amazed by how can it be so clear for such complex concepts!! I love your speak voice, also love the sound of your keyboard! Everything is just so PERFECT!! Thank you!!
I was just thinking yesterday to add a comment asking you to explain redux. Thank you for what you are doing. Keep it up.
thnx buddy! the latest update of redux made all the past tutorials very hard to follow and I was stuck on this for the last 2 days, your video did a fabulous job of explaining the builder❤❤
Incredibly good and clear explanation. I've been struggling to understand Redux for quite some time. Indeed, no need to watch any other videos about Redux Toolkit after yours. I'm happy I could understand everything. Finally! Thank you!
Thank you for this one man, I badly need clear explanation like this. Kudos!
Thank you alot. I used to code with Angular and had to learn the redux equivalent. I watched a few videos but all of them are really bad. This video explained it so simple
Thank you for this video. U certainly did explain quite clearly how RTK works and the best thing is, u even included how to work with typescript and thunks, which so far I've not seen other videos do.
My opinion after watching this, and also after reading what Dan Abramov wrote (what somebody above me said), is that sometimes we will still need redux for the fact that the native Context API does not sufficiently cover all use cases for state management. Therefore knowledge of redux is still good to have in 2023/2024 🙂
yeah totally, Redux is still valuable and will be for a long time. There are a ton of new projects choosing to use it daily because it's really good. Imo context isn't good enough to cover most state management use cases. You really need a dedicated library for that!
Thank you for this video. You described redux in a very beautiful way
Bro you are a gem. We have to protect you at all costs.
Wow, amazing.
Truly astonishing.
It answered all my questions.
Thank you Cosden
Really appreciate the way you made redux easy to understand!
one of the most straightforward tutorials! Thanks man!
Damn, you took my understanding of Redux from 5% to 90% in one session. Not only that, but by showing the redux toolkit you gave me ideas on how to redo the state of an application I am building! Thanks a lot, subscribed of course
Actually the best Redux lesson out there. Goated.
Great video, explained everything in a easy yet straight forward way. Been able to implement Redux for the first time in a simple Todo app just by watching your video. Thanks again!
that was amazing tutorial, I really like the way you explain things, down-to-earth and straight to the point!
Best Redux toolkit tutorial, period.
Great tutorial, gave complete information about the redux, all in one i needed. Well explained and a complete timely guide for redux. Great work bro
The way I see it, you should have a million subscribers by now. Good job!
great video. I've always liked and tried to use redux toolkit since the first time I came across it! I have one question though, I'm planning to add redux toolkit to deal with states in the react application I'm working on but it's not completely clear how to deal with HTTP responses from the backend services, what I mean by that is: let's picture a scenario where I call a service layer/endpoint from inside the async thunk action, is it ok for me to just return its response back to the JSX component that dispatched that action? or is it better if I simply use its response and deal with it inside the redux slice and use states to update the user interface (with a toast error message, let's say)? (consider that I'm not using RTK query to deal with HTTP requests, instead I'm gonna have a service layer with classes that will receive a axios instance and then make the HTTP calls)
Rtk query tutorial will be highly appreciated as well. Thanks!
This is awesome! From Zero to Hero! Thank you!
14:37 where does the counterReducer come from it’s not in the slice
Hey Darius. I do appreciate your channel. This video is extremely helpful. Thanks.
The best copilot advert that exists! 👍😁
I'll definitely buy it 🥰
Thank You :D. It is true, we don't need to watch any other video again! Same was the case for your react router toutorial.
Thank you. What is the next step after this short course?
Your keyboard so satisfying to hear!
fantastic tutorial. keen to try redux in my projects!
Thanks for the video, Sir. This was very clear and easy to follow. You've now earned yourself a new Subscriber! I'm looking forward to watching other topics you cover around React.
thank you for the kind words!
Thanks for the tutorial, very helpful!
You are a great teacher, you explain complex things in simple words!
thank you for the kind words!
thanks a lot for this video. i am getting started with redux toolkit and this was helpful to grasp the basics
Best Redux tutorial I have come across. 👏👏
Great video! Concept cleared.
Thank you!
explained everything in just 30 min
wonderful tutorial
thanks
Excellent thank you very much for this video!
I suggest categorizing the video, it takes a while, but saves me as a viewer lots of time watching things I already know...
Thank you! That was fantastic and clearly explained some concepts I've been struggling with for days!
Thanks, cosden, for your valuable video.
I saw ur zustand video, when u said trust me I already trust u lol, really great tutor
Been using RTK for the better part of the year, with it all being a bit hazy in my head, mostly using RTK Query and the caching! You’ve just mind blown me with this basic, but very clear, tutorial. I the spirit of the store and data fetching. Do you think you could make a video on persisting the data? (Unless you’ve already got one on your channel!) thanks a bunch, plus, I no longer feel alone with keyboard typing issues! 🤪
hahaha the keyboard typing!! Yes I might look into persisting the data with redux, I think it's as simple as using redux-persist but might be worth for a tutorial!
Within the past year found myself in the exact same situation. ChatGPT helped setting up the RTK but so happy to finally get to understand it fully.
One of the rare easy to understand explanation, which also explain what, why and where different Redux methods and hooks should be used and their syntax.
Can you please make another video about Redux middleware?
Very clear explanation..very helpful video..Thanks !
Apart from the great explanation, the fact that some people seems to think this "paradign" is cool blows my mind. Am i the only one who thinks this is overcomplicated for no reason ?
it used to be way worse. Try zustand for a simpler solution
Thank you very much for the video. Out of many channels that I watch, I find that I get the greatest understanding and value out of yours. Please keep going! Another request is, could you make a video discussing different middleware libraries for Redux such as Sagas and Thunk?
What a great, great video!! Thanks for that! :)
I love your confidence sir
Amazing explanation! Thank you for this video sir!
Great tutorial bro! Appreciate it so much. Clear and concise.
Been going through all your videos to learn react and found them really great to follow, left this one as the project I took over at work doesn't use redux, finally got around to watching it. Makes me wonder why we don't use redux as it looks really good, sort of state management (we use context) and useReducer hook rolled into one.
Just to confirm, when using "useState" vs useRef, the use state forces a redraw but useRef doesn't.... So what is forcing the redraw -- is it whenever you call "dispatch(...)" so just like when using useState.
Also - great tip at the end, thanks for the heads up on the extension :)
Without Redux, useState is causing a re-render and useRef isn't. With redux, it's when you dispatch the action. It then goes to the store which gets updated, and components receive the updates through the selectors if they're listening. This all works through context btw, using the Provider from react-redux, so it's pretty similar!
I'm not sure why people don't use Redux too much. It used to be a lot more complicated in the past, but now with RTK it's so much better. But sometimes it may be overkill for a project, it depends. I really like it as well!
@@cosdensolutionsGreat, thanks for confirming that. Not looked at RTK Query yet. just messing around with the basics first :)
it's so clear, thank you so much
Async thunks were always confusing to me. You made it really easy. Thank you!
Really clear ! Thank u very much for your work ! :)
17:10 is it that Redux Toolkit is letting you write mutating code and doing some magic behind the scenes, or is it actually that the parameter "state" is a clone of the current state so you can change however you like ?
it's the first one
a little confusing, why they are called as "actions" here 18:49 and not "reducers"? As we can clearly see they are defined inside of the "reducers" object so they should have been called "reducers"
They are not the functions defined in the reducers, even if they have the same name. They are actions that then trigger those reducere.
You can see this by the arguments both take. One receives the state, the other is a function you define
@@cosdensolutions confusion gone thanks for the explanation. Been watching your videos and sometime back and forth just to ingrain the valuable concepts.. I'd say you're by far the best in explaining things 💪
Thank you so much for your tutorials!
Thank you so much for sharing the source code as well, it's very helpful.
Really nice tutorial. Curious how you handle redux sagas now in the latest server component update where the store needs to be rebuild. Thinking of asynchronous requests for “get user notifications” or something along those lines.
This tutorial was amazing! Thank you so much!
Thank you so much for the video. It was really helpful! I think it would also be cool to hear an explanation of RTK query from you
I'm glad that i watched ur vedios , it helped me to save lot of time. Good work bro
Great explanation as always 💯
The first actual thing guys, is that you practice step by step, ok?
No brain links form and grow from just watching
Good luck fellows
Amazing amazing tutorial. Thank you so much, God bless!
Best RTK explanation video. Thanks brother.
Thank you for this amazing video❤
Thank you, this is exactly what I needed. Your explanation and example is awesome.
Thank you. Perfect lesson!
Best redux tutorial ever.
You are an amazing teacher man❤
Promise delivered and I am looking forward to buy and learn some real life project tutorial made by you. Thanks Darius.
In about a month I'm launching a course like nothing else. It will teach you everything you need about React and so much more! Stay tuned ☺️
I have been struggling for months to make sense of the concepts of store, actions & reducers . Honestly your video here has finally helped me crack the code.I actually was led to your TH-cam channel from your TikTok page.Thanks for the very incisive tutorial.You're a rare breed!!! However I am still struggling to run the Social Echoe app locally.I guess it has to do with dependency version issues??
Thank you for the kind words! I'm really glad you finally understand that! And yes a lot of people have mentioned that with social echo. Not too sure what's going on there 🙁
Luck to have found you in TH-cam. Thank you very much.
Very straightforward. Thanks, bro
Thankyou very much!
what is the extension for that autocomplete ?