Redux - Complete Tutorial (with Redux Toolkit)

  Рет қаралды 243,235

Cosden Solutions

Cosden Solutions

Күн бұрын

Пікірлер: 402
@cosdensolutions
@cosdensolutions 8 ай бұрын
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
@MateuszMinder
@MateuszMinder 10 ай бұрын
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 10 ай бұрын
Glad to hear it!
@tallmantek
@tallmantek Жыл бұрын
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 Жыл бұрын
Damn, thank you for the kind words that means a lot! Really glad you found this useful ☺️
@tallmantek
@tallmantek Жыл бұрын
@@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 Жыл бұрын
hey, the same over here
@balasubramani9310
@balasubramani9310 Жыл бұрын
@@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 9 ай бұрын
I also impressed how he memoizes, does, and casts things in numerous videos, I'd rank him in a row with Shwarzmuller
@licokr
@licokr 8 ай бұрын
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 👍
@gaganyt7861
@gaganyt7861 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
​@@cosdensolutionsplease next video about the best tech stack in 2024 frontend+backend+database
@AskoldTheFirst
@AskoldTheFirst 3 ай бұрын
@@gaganyt7861 what about ReactJS/MaterialUI + C#/.Net + MSSQL or MongoDB?
@LifeAtMH41
@LifeAtMH41 9 ай бұрын
You have mad teaching skills. You made me understand Redux in just one video. Thanks man.
@viallymboma9874
@viallymboma9874 11 ай бұрын
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.
@TechMagic204
@TechMagic204 9 ай бұрын
You not only did this perfectly but you even left the name of the vsCode theme you are using in the description. 🙃
@toheebajayi1454
@toheebajayi1454 3 ай бұрын
Don’t know redux was so easy until I watched this video. Thanks
@mouseclicker4955
@mouseclicker4955 Жыл бұрын
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 Жыл бұрын
Thank you for the kind words! Glad you find the videos useful ☺️
@gubatenkov
@gubatenkov Жыл бұрын
@@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 Жыл бұрын
@@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 Жыл бұрын
@@hasaniqbal233hm, u are absolutely right
@cosdensolutions
@cosdensolutions Жыл бұрын
@@hasaniqbal233 still valuable even in new apps. Tons of new projects use it daily. It's a great tool, but only with TK imo
@austinmigchelbrink4938
@austinmigchelbrink4938 Ай бұрын
Bravo. You lay this out like docs do and provide some foundational term definition and concept explanation before applying. Bravo.
@tireksik7193
@tireksik7193 2 ай бұрын
The best redux tutorial on internet! At first it may sound confusing, but by around 1/3 of the video everything clears up
@tbyrondouglas1
@tbyrondouglas1 8 күн бұрын
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!
@fullmastrinio
@fullmastrinio 10 ай бұрын
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
@someguynamedvictor
@someguynamedvictor Жыл бұрын
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 Жыл бұрын
Great to hear! Actually filming the zustand equivalent video this week!
@yugeshkk3062
@yugeshkk3062 Жыл бұрын
No Extra Talks just straight to the matter , well explained sir, Thanks a Lot..
@jahelation8658
@jahelation8658 9 ай бұрын
Thank you man - I love how you give context and make it all seem simple. Other resources turn it into a head fck.
@BeeBeeEight
@BeeBeeEight Жыл бұрын
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 Жыл бұрын
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!
@germoreira1
@germoreira1 8 ай бұрын
You said that with this video we would understand redux and it would not be necessary to watch more videos. You did not disappoint!
@ET_Bermuda
@ET_Bermuda 9 ай бұрын
You definitely got mad teaching skills, man. You really do explain every little thing perfectly. Good job.
@killswitch.
@killswitch. Жыл бұрын
I've been waiting so desperately for this...
@sanhitabiswas1171
@sanhitabiswas1171 Жыл бұрын
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.
@Remirured
@Remirured Ай бұрын
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
@wenbinliu6600
@wenbinliu6600 10 ай бұрын
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!!
@basiorbb3
@basiorbb3 Жыл бұрын
I was just thinking yesterday to add a comment asking you to explain redux. Thank you for what you are doing. Keep it up.
@Retr0_Pr
@Retr0_Pr 7 ай бұрын
You're a fantastic teacher. Thanks for this awesome video!
@mayuripatel3225
@mayuripatel3225 6 ай бұрын
I've seen lots of tutorials but the way you explained everything is just amazing.
@abhisheknavgan6829
@abhisheknavgan6829 10 ай бұрын
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❤❤
@shubhamshekhar23
@shubhamshekhar23 11 ай бұрын
At this point i am now convinced you are a Godsend React teacher ..
@robboerman9378
@robboerman9378 6 ай бұрын
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
@daniyalsohail2200
@daniyalsohail2200 11 ай бұрын
Bro you are a gem. We have to protect you at all costs.
@anastasiiamatiushenko1508
@anastasiiamatiushenko1508 4 ай бұрын
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!
@maryamblri
@maryamblri Жыл бұрын
This is the best redux tutorial. Explained everything developer need :) Thank you!
@TheHiDerr
@TheHiDerr 9 ай бұрын
The best copilot advert that exists! 👍😁 I'll definitely buy it 🥰
@gouravkolhatkar3623
@gouravkolhatkar3623 6 ай бұрын
Best Redux toolkit tutorial, period.
@Dalsy97
@Dalsy97 Жыл бұрын
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!
@ariyoujahan9662
@ariyoujahan9662 Ай бұрын
Wow, amazing. Truly astonishing. It answered all my questions. Thank you Cosden
@papanoelle785
@papanoelle785 9 ай бұрын
The way I see it, you should have a million subscribers by now. Good job!
@pratikghare_
@pratikghare_ Ай бұрын
Really appreciate the way you made redux easy to understand!
@sehejwahla5437
@sehejwahla5437 10 ай бұрын
Actually the best Redux lesson out there. Goated.
@allhailalona
@allhailalona 3 ай бұрын
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...
@achilles7755
@achilles7755 11 ай бұрын
one of the most straightforward tutorials! Thanks man!
@parasmalhotra7633
@parasmalhotra7633 2 ай бұрын
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
@thomasnarkiss6319
@thomasnarkiss6319 9 ай бұрын
Rtk query tutorial will be highly appreciated as well. Thanks!
@Amritbagga-vk6kq
@Amritbagga-vk6kq 5 ай бұрын
Your keyboard so satisfying to hear!
@strugglingElds
@strugglingElds Жыл бұрын
Thank you for this one man, I badly need clear explanation like this. Kudos!
@yekuwilfred6864
@yekuwilfred6864 11 ай бұрын
Best Redux tutorial I have come across. 👏👏
@jaycekuruvilla8014
@jaycekuruvilla8014 Ай бұрын
Very clear explanation..very helpful video..Thanks !
@AvinashKumarNagar
@AvinashKumarNagar 6 ай бұрын
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.
@bhargavganesh6496
@bhargavganesh6496 7 ай бұрын
explained everything in just 30 min wonderful tutorial thanks
@MarlonEnglemam
@MarlonEnglemam 8 ай бұрын
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)
@diegomax
@diegomax 4 ай бұрын
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 ?
@cosdensolutions
@cosdensolutions 4 ай бұрын
it used to be way worse. Try zustand for a simpler solution
@jankowalski2652
@jankowalski2652 4 ай бұрын
that was amazing tutorial, I really like the way you explain things, down-to-earth and straight to the point!
@LoayAl-Said-j8p
@LoayAl-Said-j8p Ай бұрын
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
@Ryan-fe2du
@Ryan-fe2du 4 ай бұрын
This is awesome! From Zero to Hero! Thank you!
@Nothing-xi5dv
@Nothing-xi5dv 3 ай бұрын
Thanks, cosden, for your valuable video.
@anjankumarmj01
@anjankumarmj01 10 ай бұрын
Best RTK explanation video. Thanks brother.
@wallowizzard
@wallowizzard Жыл бұрын
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 Жыл бұрын
thank you for the kind words!
@omerkarakas
@omerkarakas Жыл бұрын
Hey Darius. I do appreciate your channel. This video is extremely helpful. Thanks.
@ailint5557
@ailint5557 6 ай бұрын
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?
@andrewborys4599
@andrewborys4599 Жыл бұрын
Thanks for the tutorial, very helpful! You are a great teacher, you explain complex things in simple words!
@cosdensolutions
@cosdensolutions Жыл бұрын
thank you for the kind words!
@tunde6159
@tunde6159 6 ай бұрын
Best redux tutorial ever.
@webfnatic
@webfnatic Жыл бұрын
Great video! Concept cleared. Thank you!
@8359s
@8359s Ай бұрын
Thank you. What is the next step after this short course?
@RodionAznaurov
@RodionAznaurov 3 ай бұрын
Thank you. Perfect lesson!
@UnstableInfused
@UnstableInfused 6 ай бұрын
Thank you! That was fantastic and clearly explained some concepts I've been struggling with for days!
@canban
@canban Жыл бұрын
This gave me Derek Banas vibe, short yet potent!
@danlabrador
@danlabrador 7 ай бұрын
Async thunks were always confusing to me. You made it really easy. Thank you!
@vinayakpanchal9907
@vinayakpanchal9907 3 ай бұрын
Amazing amazing tutorial. Thank you so much, God bless!
@harag9
@harag9 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@cosdensolutionsGreat, thanks for confirming that. Not looked at RTK Query yet. just messing around with the basics first :)
@Shaheer-xs5os
@Shaheer-xs5os Жыл бұрын
Amazing explanation! Thank you for this video sir!
@karimaBenhssayen
@karimaBenhssayen 2 ай бұрын
it's so clear, thank you so much
@Rafps3player
@Rafps3player 8 ай бұрын
thanks a lot for this video. i am getting started with redux toolkit and this was helpful to grasp the basics
@rameezh88
@rameezh88 9 ай бұрын
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?
@penguinxed
@penguinxed 5 ай бұрын
Great tutorial bro! Appreciate it so much. Clear and concise.
@mohammaddaudibrahim3501
@mohammaddaudibrahim3501 4 ай бұрын
Thank you so much for sharing the source code as well, it's very helpful.
@shamanFR
@shamanFR Жыл бұрын
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 Жыл бұрын
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 11 ай бұрын
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.
@santech5669
@santech5669 11 ай бұрын
I saw ur zustand video, when u said trust me I already trust u lol, really great tutor
@jeffreymonjacastro609
@jeffreymonjacastro609 5 ай бұрын
It's june 2024 and still being the best get started to Redux tutorial 🙌🙌
@kirankothandan5529
@kirankothandan5529 7 ай бұрын
You are an amazing teacher man❤
@chrislaforet1064
@chrislaforet1064 4 ай бұрын
I like your keyboard. Apparently it is an async keyboard, returning a Promise of the correct code in the near future 😂 Thanks for the tutorial, it was very helpful.
@helenasdiaries515
@helenasdiaries515 Ай бұрын
Thank you so much for your tutorials!
@halaalaa4531
@halaalaa4531 2 ай бұрын
Thank you for this amazing video❤
@EliteSurfing-i7c
@EliteSurfing-i7c 11 ай бұрын
Luck to have found you in KZbin. Thank you very much.
@sunilanthony17
@sunilanthony17 11 ай бұрын
Thank you, this is exactly what I needed. Your explanation and example is awesome.
@wishmeheaven
@wishmeheaven 9 ай бұрын
00:05 - "wow, what a promise! sure his tutorial will include entities and a basic integration with an API."" 33:25 - "ooo... yes yes yes, here it comes.." 36:30 - "yes, yes... indeed you promise, repeating your promise, and ended up this tutorial with the reminder of your promise. Unfortunately, none of those reflects this promise fulfillment. thanks anyway. I'll go find some Redux Toolkit tutorials that will fulfill my expectations without even promising me anything in advance. thanks anyway.. p.s. I'm sure that there's a good reason for the fact that you have so many subscribers. They will probably trust you even in the next time that you'll promise them something. Good luck!
@stephennwakasi4631
@stephennwakasi4631 4 ай бұрын
Very straightforward. Thanks, bro
@jahelation8658
@jahelation8658 9 ай бұрын
If I am not mistaken and having looked at the video it seems it seems the async functions are living inside the slice files which in my opinion is mixing up concerns. I think I prefer to keep the store state separate from network calls. i.e. I prefer doing this: const validProofs = await getProofs(); dispatch(homeUpdateProofs(proofs)); I do however appreciate that that using the createAsyncThunk() hook allows one to update state variables with values like pending.
@vladmoca
@vladmoca 6 ай бұрын
This tutorial was amazing! Thank you so much!
@deepakkashyap6538
@deepakkashyap6538 Жыл бұрын
Great explanation as always 💯
@Manu-ff5vl
@Manu-ff5vl 10 ай бұрын
I'm glad that i watched ur vedios , it helped me to save lot of time. Good work bro
@rodomeneses2548
@rodomeneses2548 10 ай бұрын
You got a new subscriber with just 1 video
@thesm9734
@thesm9734 10 ай бұрын
nah man you were right, this is the tutorial that I was looking for!
@giovsteph
@giovsteph 2 ай бұрын
Awesome tutorial, thanks!!!
@amargaridaferreira
@amargaridaferreira 7 ай бұрын
Thank you for this tutorial, great explanation 🙌
@fefeb0
@fefeb0 7 ай бұрын
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 7 ай бұрын
hahah yes I did! ergodox EZ
@andrevenancio
@andrevenancio Ай бұрын
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.
@nicc1262
@nicc1262 4 ай бұрын
Why do you need to use async functionality in Redux - why can't you just have your own async handler as per usual and when that completes the promise, call the dispatch? E.g. if you need to fetch data and store that in state, why not use an async function to fetch the data and after the await you use the dispatch with the data as the payload to the normal sync redux reducer? Or is Redux not capable of the dispatch being used in an async action like I have described or are there other reasons not to do this? Because this is how state is normally managed - do the data fetch and await it and then update the state - why do we need to do this differently when it comes to Redux?
@sfspmusic
@sfspmusic 4 ай бұрын
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
@razisraeli1150
@razisraeli1150 3 ай бұрын
What a great, great video!! Thanks for that! :)
Zustand - Complete Tutorial
19:27
Cosden Solutions
Рет қаралды 104 М.
Redux + Redux Toolkit | Продвинутый полный курс | Часть 1
3:08:18
Евгений Паромов | Front-end
Рет қаралды 37 М.
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 142 МЛН
Yay😃 Let's make a Cute Handbag for me 👜 #diycrafts #shorts
00:33
LearnToon - Learn & Play
Рет қаралды 117 МЛН
How To Choose Mac N Cheese Date Night.. 🧀
00:58
Jojo Sim
Рет қаралды 95 МЛН
Learn Redux Toolkit in under 1 hour
58:10
Hitesh Choudhary
Рет қаралды 149 М.
State Managers Are Making Your Code Worse In React
13:33
Web Dev Simplified
Рет қаралды 202 М.
The Most Important Design Pattern in React
35:04
Cosden Solutions
Рет қаралды 106 М.
Redux Tutorial - Learn Redux from Scratch
1:34:53
Programming with Mosh
Рет қаралды 1,1 МЛН
Learn React Hooks: useReducer - Simply Explained!
13:48
Cosden Solutions
Рет қаралды 67 М.
Redux Toolkit - Complete Tutorial ( with Project ) 🔥🔥
48:30
RoadsideCoder
Рет қаралды 19 М.
The Story of React Query
8:55
uidotdev
Рет қаралды 113 М.
The Future of React Query with Dominik Dorfmeister (TkDodo)
35:41
Cosden Solutions
Рет қаралды 733
Modern Data Fetching in React (Complete Guide)
16:41
Cosden Solutions
Рет қаралды 68 М.
React Crash Course 2024
3:04:36
Traversy Media
Рет қаралды 614 М.