Redux - Complete Tutorial (with Redux Toolkit)

  Рет қаралды 125,313

Cosden Solutions

Cosden Solutions

6 ай бұрын

Join The Discord! → discord.cosdensolutions.io
Source Code → github.com/cosdensolutions/co...
VSCode Theme | Font → Material Theme Darker | Menlo, Monaco "monospace"
In this video we will learn about Redux and Redux Toolkit. Redux is a state management library that makes it really easy to have global state in your React application. We are going to learn how to work with modern Redux, using Redux Toolkit to save ourselves some boilerplate code. This is the last video you will ever have to watch on Redux with Redux Toolkit! Enjoy!

Пікірлер: 279
@cosdensolutions
@cosdensolutions Ай бұрын
Hey everyone! I just launched 🚀 Project React, which is a course that teaches you React by building a real-world project. It goes way beyond what you see in these videos and walks you through step-by-step on how to build a big and complex application with React! You can check it out here: cosden.solutions/project-react
@davidigbokwe6252
@davidigbokwe6252 6 ай бұрын
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
@cosdensolutions 6 ай бұрын
Damn, thank you for the kind words that means a lot! Really glad you found this useful ☺️
@davidigbokwe6252
@davidigbokwe6252 6 ай бұрын
@@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🫡
@jotasenator
@jotasenator 6 ай бұрын
hey, the same over here
@balasubramani9310
@balasubramani9310 5 ай бұрын
@@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 ?
@Storkz0re
@Storkz0re 2 ай бұрын
I also impressed how he memoizes, does, and casts things in numerous videos, I'd rank him in a row with Shwarzmuller
@user-ug4uu5yi6u
@user-ug4uu5yi6u 3 ай бұрын
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
@cosdensolutions
@cosdensolutions 3 ай бұрын
Glad to hear it!
@licokr
@licokr Ай бұрын
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 👍
@achilles7755
@achilles7755 4 ай бұрын
one of the most straightforward tutorials! Thanks man!
@jahelation8658
@jahelation8658 2 ай бұрын
Thank you man - I love how you give context and make it all seem simple. Other resources turn it into a head fck.
@LifeAtMH41
@LifeAtMH41 2 ай бұрын
You have mad teaching skills. You made me understand Redux in just one video. Thanks man.
@maryamblri
@maryamblri 5 ай бұрын
This is the best redux tutorial. Explained everything developer need :) Thank you!
@strugglingElds
@strugglingElds 5 ай бұрын
Thank you for this one man, I badly need clear explanation like this. Kudos!
@wallowizzard
@wallowizzard 5 ай бұрын
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.
@cosdensolutions
@cosdensolutions 5 ай бұрын
thank you for the kind words!
@someguynamedvictor
@someguynamedvictor 5 ай бұрын
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!
@cosdensolutions
@cosdensolutions 5 ай бұрын
Great to hear! Actually filming the zustand equivalent video this week!
@sanhitabiswas1171
@sanhitabiswas1171 5 ай бұрын
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.
@andrewborys4599
@andrewborys4599 6 ай бұрын
Thanks for the tutorial, very helpful! You are a great teacher, you explain complex things in simple words!
@cosdensolutions
@cosdensolutions 6 ай бұрын
thank you for the kind words!
@bhargavganesh6496
@bhargavganesh6496 3 күн бұрын
explained everything in just 30 min wonderful tutorial thanks
@yugeshkk3062
@yugeshkk3062 4 ай бұрын
No Extra Talks just straight to the matter , well explained sir, Thanks a Lot..
@omerkarakas
@omerkarakas 6 ай бұрын
Hey Darius. I do appreciate your channel. This video is extremely helpful. Thanks.
@sehejwahla5437
@sehejwahla5437 3 ай бұрын
Actually the best Redux lesson out there. Goated.
@sunilanthony17
@sunilanthony17 4 ай бұрын
Thank you, this is exactly what I needed. Your explanation and example is awesome.
@webfnatic
@webfnatic 5 ай бұрын
Great video! Concept cleared. Thank you!
@Morteza_Pr
@Morteza_Pr 26 күн бұрын
You're a fantastic teacher. Thanks for this awesome video!
@wenbinliu6600
@wenbinliu6600 3 ай бұрын
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!!
@yekuwilfred6864
@yekuwilfred6864 3 ай бұрын
Best Redux tutorial I have come across. 👏👏
@amargaridaferreira
@amargaridaferreira 11 күн бұрын
Thank you for this tutorial, great explanation 🙌
@deepakkashyap6538
@deepakkashyap6538 6 ай бұрын
Great explanation as always 💯
@germoreira1
@germoreira1 Ай бұрын
You said that with this video we would understand redux and it would not be necessary to watch more videos. You did not disappoint!
@Shaheer-xs5os
@Shaheer-xs5os 6 ай бұрын
Amazing explanation! Thank you for this video sir!
@killswitch.
@killswitch. 6 ай бұрын
I've been waiting so desperately for this...
@kirankothandan5529
@kirankothandan5529 3 күн бұрын
You are an amazing teacher man❤
@TheHiDerr
@TheHiDerr Ай бұрын
The best copilot advert that exists! 👍😁 I'll definitely buy it 🥰
@basiorbb3
@basiorbb3 6 ай бұрын
I was just thinking yesterday to add a comment asking you to explain redux. Thank you for what you are doing. Keep it up.
@danlabrador
@danlabrador 7 сағат бұрын
Async thunks were always confusing to me. You made it really easy. Thank you!
@Rafps3player
@Rafps3player 29 күн бұрын
thanks a lot for this video. i am getting started with redux toolkit and this was helpful to grasp the basics
@thomasnarkiss6319
@thomasnarkiss6319 2 ай бұрын
Rtk query tutorial will be highly appreciated as well. Thanks!
@rameezh88
@rameezh88 2 ай бұрын
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?
@Thassalocracy
@Thassalocracy 6 ай бұрын
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 🙂
@cosdensolutions
@cosdensolutions 6 ай бұрын
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!
@sarakaterji
@sarakaterji 23 күн бұрын
really well explained, thank you!
@anjankumarmj01
@anjankumarmj01 3 ай бұрын
Best RTK explanation video. Thanks brother.
@venisasfiesta
@venisasfiesta Ай бұрын
How are you soo good?? You really don't lie when you say this will be the last video we'll ever watch of this topic! Thank you so much 🙌
@Dalsy97
@Dalsy97 5 ай бұрын
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!
@EnomisArts
@EnomisArts 5 ай бұрын
Really clear ! Thank u very much for your work ! :)
@venisasfiesta
@venisasfiesta Ай бұрын
How are you so good?? You really don't lie when you say this will be our last video we watch of this topic. Thank you so much 🙌
@facundoortiz8251
@facundoortiz8251 Ай бұрын
excellent ! really good explanation. thank you !
@kinuthiastevie4031
@kinuthiastevie4031 Ай бұрын
Thank you so much you made it way easy for me to understand
@daniyalsohail2200
@daniyalsohail2200 4 ай бұрын
Bro you are a gem. We have to protect you at all costs.
@papanoelle785
@papanoelle785 2 ай бұрын
The way I see it, you should have a million subscribers by now. Good job!
@Manu-ff5vl
@Manu-ff5vl 3 ай бұрын
I'm glad that i watched ur vedios , it helped me to save lot of time. Good work bro
@YashChoukse
@YashChoukse 4 ай бұрын
Thanks for the video, really helpful!
@vesa95
@vesa95 6 ай бұрын
Love this new topic! ❤
@arsen1156
@arsen1156 Ай бұрын
Awesome tutorial, very useful!
@user-wt9oo7qb9o
@user-wt9oo7qb9o 4 ай бұрын
Thanks! That's very helpful
@ET_Bermuda
@ET_Bermuda 2 ай бұрын
You definitely got mad teaching skills, man. You really do explain every little thing perfectly. Good job.
@chevensloveedouard7436
@chevensloveedouard7436 4 ай бұрын
I very like it. It was super clear. Thanks a lot !🔥🔥🔥🔥
@TechMagic204
@TechMagic204 Ай бұрын
You not only did this perfectly but you even left the name of the vsCode theme you are using in the description. 🙃
@edit_Pro_1
@edit_Pro_1 10 күн бұрын
this is best Tutorial man
@fefeb0
@fefeb0 17 күн бұрын
First of all, thanks for the great tutorial! I'm really enjoying your content. By the way, which keyboard are you using in this video? It sounds awesome! (hope you got used to it 😂)
@cosdensolutions
@cosdensolutions 17 күн бұрын
hahah yes I did! ergodox EZ
@mouseclicker4955
@mouseclicker4955 6 ай бұрын
This is probably the only video on KZbin 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
@cosdensolutions 6 ай бұрын
Thank you for the kind words! Glad you find the videos useful ☺️
@gubatenkov
@gubatenkov 6 ай бұрын
@@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
@hasaniqbal233
@hasaniqbal233 6 ай бұрын
@@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
@gubatenkov
@gubatenkov 6 ай бұрын
@@hasaniqbal233hm, u are absolutely right
@cosdensolutions
@cosdensolutions 6 ай бұрын
@@hasaniqbal233 still valuable even in new apps. Tons of new projects use it daily. It's a great tool, but only with TK imo
@abhisheknavgan6829
@abhisheknavgan6829 3 ай бұрын
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❤❤
@gaganyt7861
@gaganyt7861 6 ай бұрын
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
@cosdensolutions
@cosdensolutions 6 ай бұрын
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!
@gaganyt7861
@gaganyt7861 6 ай бұрын
​@@cosdensolutionsplease next video about the best tech stack in 2024 frontend+backend+database
@santech5669
@santech5669 4 ай бұрын
I saw ur zustand video, when u said trust me I already trust u lol, really great tutor
@dlouhavideacz
@dlouhavideacz 2 ай бұрын
Promise delivered and I am looking forward to buy and learn some real life project tutorial made by you. Thanks Darius.
@cosdensolutions
@cosdensolutions 2 ай бұрын
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 ☺️
@shamanFR
@shamanFR 5 ай бұрын
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! 🤪
@cosdensolutions
@cosdensolutions 5 ай бұрын
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!
@yehorsanko9241
@yehorsanko9241 4 ай бұрын
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.
@trtrion1999
@trtrion1999 5 ай бұрын
man I wish I had mentor like you best channel offer really awesome explanation and simple
@cosdensolutions
@cosdensolutions 5 ай бұрын
well you do now ☺️
@rodomeneses2548
@rodomeneses2548 3 ай бұрын
You got a new subscriber with just 1 video
@kaizawa15dev
@kaizawa15dev 5 ай бұрын
rly rly good tutorial
@konscomputertutorials7473
@konscomputertutorials7473 5 ай бұрын
He kept to his word. thank you sir
@shubhamshekhar23
@shubhamshekhar23 4 ай бұрын
At this point i am now convinced you are a Godsend React teacher ..
@krismondevv7356
@krismondevv7356 4 ай бұрын
Very good and concise tutorial.
@ranamuzamal9655
@ranamuzamal9655 4 ай бұрын
Amazing , Thank for sharing
@joaolima3780
@joaolima3780 3 ай бұрын
perfect! Tks for it! =D
@harag9
@harag9 4 ай бұрын
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 :)
@cosdensolutions
@cosdensolutions 4 ай бұрын
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!
@harag9
@harag9 4 ай бұрын
@@cosdensolutionsGreat, thanks for confirming that. Not looked at RTK Query yet. just messing around with the basics first :)
@akbaraliyevhumoyunmirzo658
@akbaraliyevhumoyunmirzo658 4 ай бұрын
You are fantastic man
@NdubuishiUlenu
@NdubuishiUlenu 5 ай бұрын
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 KZbin 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??
@cosdensolutions
@cosdensolutions 5 ай бұрын
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 🙁
@mohamadjalali9354
@mohamadjalali9354 17 күн бұрын
perfect, thank you
@thesm9734
@thesm9734 3 ай бұрын
nah man you were right, this is the tutorial that I was looking for!
@zehrakok8755
@zehrakok8755 3 ай бұрын
Thank you for lesson. That is great
@canban
@canban 5 ай бұрын
This gave me Derek Banas vibe, short yet potent!
@omaracelys3217
@omaracelys3217 3 ай бұрын
very good video, appreciate your energy, and it was funny to see you battle with the keyboard 😋😋
@cosdensolutions
@cosdensolutions 3 ай бұрын
I finally feel like I got the hang of it!!
@user-pe2mw1eo3g
@user-pe2mw1eo3g 4 ай бұрын
Luck to have found you in KZbin. Thank you very much.
@fullmastrinio
@fullmastrinio 3 ай бұрын
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
@gurbanoglu5143
@gurbanoglu5143 3 ай бұрын
Thank you for the tutorial. In future videos, please show the commands you execute to generate the project and for installing the tools you use.
@varshithgowdav9892
@varshithgowdav9892 5 ай бұрын
Your explanation is fantastic! It would be even more impactful if you could create a video showcasing real-life asynchronous operations in action
@harag9
@harag9 4 ай бұрын
This would be helpful to see. I'm still a little lost in when to use pending etc. The text that appeared before he quickly deleted it said something about showing a loading indicator.
@kamola9142
@kamola9142 4 ай бұрын
Very easy explanation👍👍👍
@learnearn8721
@learnearn8721 6 ай бұрын
Really good thanks 🙏🙏🙏🙏 a lot love from India.❤
@collinsk8754
@collinsk8754 Ай бұрын
Very clear! 👏👏
@vojka2973
@vojka2973 6 ай бұрын
thank you, nice video!!!
@juniorAC32
@juniorAC32 2 ай бұрын
Great explanation ...
@mDHARYL
@mDHARYL Ай бұрын
Hello great tutorial. There's a lot of state management library. Which one do you prefer Redux, recoil or zustand?
@PathumSimpson
@PathumSimpson 3 ай бұрын
You fulfilled the promise. 💯
@LeandroNunes2014
@LeandroNunes2014 6 ай бұрын
Thank you very much!
@balasubramani9310
@balasubramani9310 5 ай бұрын
Hi ,Thanks for the video , its very clear and easy to understand teh concept . 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 ?
@gerguno
@gerguno 3 ай бұрын
Thank you!
@timmanchester4515
@timmanchester4515 4 ай бұрын
I wish there was a double like option, that tutorial was fantastic.
@shubhamkakad10x
@shubhamkakad10x 3 ай бұрын
i like it your confidence
@ByteNatives
@ByteNatives 6 ай бұрын
Splendid video :)
@yassinemks6825
@yassinemks6825 2 ай бұрын
thank you so much
@azizmahon7013
@azizmahon7013 3 ай бұрын
what theme do you use mate ? , thank you for this video !
@MarlonEnglemam
@MarlonEnglemam 29 күн бұрын
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)
@maykiteplanet
@maykiteplanet 5 ай бұрын
Thank you❤
@gaytanlugo4821
@gaytanlugo4821 3 ай бұрын
Amazing explanation. I have one question: What would you recommend between RTK query and thunks, and which is more commonly used?
@cosdensolutions
@cosdensolutions 3 ай бұрын
I would go for RTK since it's built to work with Redux, but you can also handle your own APIs using thunks if you want or if you are working in a project that has it setup like that
@turgunov28
@turgunov28 6 ай бұрын
amazing 🔥
Zustand - Complete Tutorial
19:27
Cosden Solutions
Рет қаралды 52 М.
Learn Redux Toolkit in under 1 hour
58:10
Hitesh Choudhary
Рет қаралды 109 М.
ONE MORE SUBSCRIBER FOR 4 MILLION!
00:28
Horror Skunx
Рет қаралды 43 МЛН
FOOTBALL WITH PLAY BUTTONS ▶️ #roadto100million
00:24
Celine Dept
Рет қаралды 113 МЛН
РАДУЖНАЯ ГОРКА 🌈😱
00:30
ВИОЛА 🐰
Рет қаралды 3,7 МЛН
Разбираем основы Kafka и RabbitMQ
26:54
Digital train | Alex Babin
Рет қаралды 2,1 М.
Redux Toolkit для управления состоянием в React-приложении
1:00:09
Михаил Непомнящий
Рет қаралды 185 М.
Redux Tutorial - Learn Redux from Scratch
1:34:53
Programming with Mosh
Рет қаралды 1 МЛН
Вселенная и Специальная теория относительности.
3:51:36
ЗЛОЙ АНАЛИТИК ВСЕЛЕННОЙ.
Рет қаралды 6 МЛН
Hollywood is Using AI! Have You Noticed?
31:20
Curious Refuge
Рет қаралды 12 М.
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 252 М.
How This Pen Changed The World
9:17
Primal Space
Рет қаралды 203 М.
React Crash Course 2024
3:04:36
Traversy Media
Рет қаралды 173 М.
ONE MORE SUBSCRIBER FOR 4 MILLION!
00:28
Horror Skunx
Рет қаралды 43 МЛН