React Redux Toolkit Tutorial for Beginners | Learn Modern Redux

Поділитися
Вставка
  • Опубліковано 20 гру 2024

КОМЕНТАРІ • 327

  • @DaveGrayTeachesCode
    @DaveGrayTeachesCode  2 роки тому +37

    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: ua-cam.com/video/RVFAyFWO4go/v-deo.html

    • @eric_ng5253
      @eric_ng5253 2 роки тому

      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?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 роки тому +2

      @@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.

    • @EndLessPain9999
      @EndLessPain9999 2 роки тому

      what about useContext??? can't replace it? sorry for newbie questions

    • @BusinessWolf1
      @BusinessWolf1 Рік тому +1

      It is not at all the best known global state management system for React. It's probabbly the worst.

    • @imraanali6410
      @imraanali6410 Рік тому

      please provide the VS code theme name sir!!!

  • @mohammaddaudibrahim3501
    @mohammaddaudibrahim3501 5 місяців тому +12

    A mental model that has helped me understand the flow
    1. State -> Object
    2. Actions -> Events
    3. Reducers -> Event Listeners
    4. Dispatch -> Event Triggers

    •  4 місяці тому

      This is an incredible alternative way to remember them. Thanks.

  • @mohamedyoussef8835
    @mohamedyoussef8835 2 роки тому +6

    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."

  • @NamNguyen-oz8uj
    @NamNguyen-oz8uj 2 роки тому +51

    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 🎉🙏✨

  • @southernsunreviews5932
    @southernsunreviews5932 Рік тому +4

    This demo is the first one in what feels like 100 youtube videos that work. Thank you so much!

  • @anamatei2134
    @anamatei2134 Рік тому +3

    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 ! :)

  • @CuteFunnyVideos20
    @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❤

  • @criztiandev
    @criztiandev 2 роки тому +1

    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

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 роки тому

      Thank you for the kind words, Criztian! 🙏 I am glad I have helped you on your journey! 🚀

  • @Proxamm
    @Proxamm 2 роки тому +12

    Dave, you have quickly become my favorite UA-cam 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!

  • @donaldballowe8855
    @donaldballowe8855 Рік тому

    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!!

  • @cmefindaname
    @cmefindaname 2 роки тому +7

    Your teaching style is amazing! Thank you for the intro to Redux Toolkit!

  • @FloraSora
    @FloraSora Рік тому +3

    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.

  • @jenso413
    @jenso413 2 роки тому

    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

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 роки тому +1

      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. 💯🚀

  • @codingispower1816
    @codingispower1816 Рік тому +1

    Great intro. Can't wait to do your next redux tk vid!

  • @TannerBarcelos
    @TannerBarcelos 2 роки тому +1

    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.

  • @jaymartinez311
    @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!

  • @deoxzyKun
    @deoxzyKun 2 роки тому +1

    by far the best video on understanding redux rn! amazing work brother

  • @thebuildguy7
    @thebuildguy7 2 місяці тому

    Simplest tutorial ever on redux! Thanks Dave!

  • @yumisunday
    @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!

  • @johnacsyen
    @johnacsyen Рік тому

    'Strive for progress over perfection', I really like this quote. This video explains concisely about Redux toolkit. Used to dislike Redux

  • @rishabhtayal6607
    @rishabhtayal6607 День тому

    Well explained, worth every sec of this video.

  • @techadventures6645
    @techadventures6645 2 роки тому

    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.

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 роки тому

      For smaller projects, I don't recommend Redux, but many want to know it because it is frequently used with enterprise / large projects.

  • @regilearn2138
    @regilearn2138 2 роки тому +1

    Wow,are you reading mind,just searching for thunk middleware,video uploaded,Thanks Dave,how many video yet to come on this topic

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 роки тому

      Glad to hear it! This will be a short series - guessing 4 to 6 videos - redux thunk coming very soon.

  • @arasefe
    @arasefe 2 роки тому

    A part from the tutorial, loved the shift+alt+down tip to copy the whole block below. Thanks

  • @syednoohu8692
    @syednoohu8692 2 роки тому +1

    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
    }

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 роки тому +1

      Accurate! 💯 redux-toolkit.js.org/api/createSlice#return-value

  • @georgejoseph2601
    @georgejoseph2601 Рік тому

    This is pretty neat. Got the whole idea down while watching it at 2x. You’re an astounding teacher. Thanks.

  • @ryanmamboudjemtchemeu4289
    @ryanmamboudjemtchemeu4289 Рік тому

    Thank you Dave Gray. I've been struggling with redux toolkit before I found your video

  • @MohammadWaseem-po2kq
    @MohammadWaseem-po2kq 7 місяців тому

    finally i found A gem, I was loooking for this tut..

  • @yonnie0521
    @yonnie0521 2 роки тому +2

    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!

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 роки тому

      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.

  • @hamzahahmad1670
    @hamzahahmad1670 2 роки тому +1

    It's awesome how the tutorial was thorough yet concise. Great stuff

  • @tanercoder1915
    @tanercoder1915 2 роки тому

    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!

  • @CTILET
    @CTILET 2 роки тому

    Ooo thank you alot! When i began to study something you post a new video about it! It is amasing!

  • @ajayshekhawat2292
    @ajayshekhawat2292 2 роки тому

    you deserve many more subscribers learrned many javascript concepts from your video and best video on redux thank you

  • @andrewclarke6916
    @andrewclarke6916 2 роки тому

    At last! React Redux Toolkit gets the Dave Gray treatment. Maybe I'll finally get to understand Redux thoroughly this time around.

  • @penguincoding1353
    @penguincoding1353 2 роки тому +1

    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...

  • @Kamim78
    @Kamim78 2 роки тому +1

    Excellent style of teaching. Thanks Dave!

  • @edwilsondasilva9946
    @edwilsondasilva9946 2 роки тому

    I am Brazilian. Sorry for some language errors. Thank you for sharing your knowledge.

  • @artiliciousbysejal4862
    @artiliciousbysejal4862 Рік тому

    was actually struggling with redux toolkit, and this video explained everything so well! Thank you👍

  • @ajayramola9386
    @ajayramola9386 Рік тому

    This was the best redux tutorial thanks Dave. You are a great teacher!

  • @ЂорђеЈеленковић
    @ЂорђеЈеленковић 2 роки тому

    You are Dr. of this game! Please cointinue with everything about Redux. :)

  • @alirezahekmati7632
    @alirezahekmati7632 2 роки тому +1

    thank you! your content is GOLD! waiting for next js tutorial. 💥🔥

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 роки тому

      Thank you! 🙏 I am excited about starting a NextJS series this year. 💯🚀

  • @Daniel-nb3kk
    @Daniel-nb3kk 2 роки тому

    Redux has never been so sexy to use before - thank you for the tutorial!

  • @syedabuthahira8053
    @syedabuthahira8053 Рік тому

    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 ❤️

  • @DineshVutukuru
    @DineshVutukuru 2 роки тому

    Just when I thought I couldn't find any better videos, I find your videos.

  • @enriquefavila3847
    @enriquefavila3847 2 роки тому

    Thank you so much man, I just discovered your channel and it is fantastic! Keep it up!

  • @rfryanfavour4369
    @rfryanfavour4369 2 роки тому

    You just taught me more than redux toolkit
    thank you sir

  • @zachariayussuf7652
    @zachariayussuf7652 11 місяців тому

    Awesome content , love your teaching method.

  • @omarakki705
    @omarakki705 2 роки тому

    You are one of the best teachers dave

  • @noir4356
    @noir4356 2 роки тому

    Let's make it simple. You've helped me landing a job. Thank you :)

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 роки тому

      Great to hear! This is the feedback that lets me know I'm on the right track. Thank you for sharing!

  • @dharmeshgohil9375
    @dharmeshgohil9375 2 роки тому

    Loved all your tutorial

  • @lucasiramos
    @lucasiramos Рік тому

    Amazing video! Can't wait to watch the whole series.... Thanks a lot for this work!

  • @aya2222
    @aya2222 2 роки тому

    Very clear and concise explanation!! Thank you so much!

  •  4 місяці тому

    Great video Dave!!! 🎉🎉 Could you please make the same tutorial using TypeScript? It would be extremely helpful

  • @pitsonborellio7463
    @pitsonborellio7463 2 роки тому

    You teach so well. woah, you make things so simple to understand

  • @willyhorizont8672
    @willyhorizont8672 2 роки тому

    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 ;)

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 роки тому

      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. 💯🚀

    • @willyhorizont8672
      @willyhorizont8672 2 роки тому

      @@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 :)

  • @voice_famous_books4301
    @voice_famous_books4301 9 місяців тому

    Thanks, best teacher for react:)

  • @arcosd63
    @arcosd63 2 роки тому

    Hey Dave, this was excellent. Extremely well done.

  • @mosqutio88
    @mosqutio88 2 роки тому

    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!

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 роки тому

      This is built in to VS Code. Open Preference > Settings > search for "Bracket Pair Colorization" and enable it.

  • @jacerchetoui709
    @jacerchetoui709 2 роки тому

    Man, you are a blessing, thank you !!

  • @omarkraidie
    @omarkraidie 2 роки тому

    You just got a new subscriber!!

  • @danieljing9319
    @danieljing9319 2 роки тому

    nice stuff, awesome always, thanks Dave

  • @jotarz96
    @jotarz96 2 роки тому

    Thanks for this Redux tutorial !

  • @wendixiao9275
    @wendixiao9275 2 роки тому

    Thanks for the fantastic tutorial!!

  • @luchonieves
    @luchonieves 2 роки тому

    Top tier tutorial! Thanks for the video man, it's awesome.

  • @mohammadmirzaei8716
    @mohammadmirzaei8716 2 роки тому

    Awesome! Thanks! please make some videos about integrate test and e2e test in react with typescript

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 роки тому +1

      Coming up later this year! Thank you for the request! 🙏🙏

  • @luisalbertovillarortiz7424
    @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
      @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
      @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...

  • @afsertanveer75
    @afsertanveer75 Рік тому

    8:56 how we imported counterReducer here whereas there wasn't anything like that from counterSlice file. Can anyone explain it?

  • @Miles09
    @Miles09 Рік тому

    Awesome video as always.

  • @tiril1991
    @tiril1991 2 роки тому

    Amazing video, thank you so much!

  • @jFernandoZ
    @jFernandoZ Рік тому

    Nice Redux Toolkit overview! Bit Refreshing...!

  • @williamandersen4633
    @williamandersen4633 2 роки тому

    Sorry knoob question: at 20:48 state.counter.count appears to reference store or slice? why is there no import in Counter.js to make that reference or does the reference get there through Provider in App.js sorry not clear to me. Anyone's help is good since this tutorial is 9 mos. old now.

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 роки тому

      The name of the counterSlice is set as "counter". The initial state has a "count" property. This is where the reference to state.counter.count comes from.

    • @williamandersen4633
      @williamandersen4633 2 роки тому

      @@DaveGrayTeachesCode Oh ok thanks. so why no import into Counter.js of counterSlice? I only see an import of actions. Is there linkage between Counter.js and counter slice.js based on the file names? Thanks for your response!

  • @TheMaKaBaY
    @TheMaKaBaY 10 місяців тому

    Nice tutoriel !

  • @ZawCodes
    @ZawCodes 2 роки тому

    This looks brilliant.

  • @ILohamLivingstone
    @ILohamLivingstone Рік тому

    the best programmer teacher ever

  • @Norfeldt
    @Norfeldt 2 роки тому

    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.

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 роки тому

      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.

    • @Norfeldt
      @Norfeldt 2 роки тому

      @@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.

  • @younesseelkars8149
    @younesseelkars8149 11 місяців тому

    Good quality content , thank you

  • @hardwired66
    @hardwired66 2 роки тому

    thank you Sir for react redux tutorial help me alot, maybe next react testing tutorial.

  • @azizbekibnhamid642
    @azizbekibnhamid642 2 роки тому

    amazing course!

  • @sonamohialdin3376
    @sonamohialdin3376 2 роки тому

    Awesome tutorial about redux thank you

  • @mohamedtarek5183
    @mohamedtarek5183 2 роки тому

    you're the king of redux😀

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 роки тому +1

      I am far from the king, but thank you for the kind words! 😀🙏

  • @Tenshi_ZA
    @Tenshi_ZA Рік тому +1

    As a super noob - I think you overcomplicated it by showing the increasebyAmount because now you threw in react states - which confused me a bit and its not pure redux alone anymore . should have just shown how to add by static value.

  • @ericcrudup2711
    @ericcrudup2711 Рік тому

    11:10 the use of the variable "state" here is unexplained. If this is explained later or in a later video, it is good practice to say "I'll explain this later (or in a different video)". There should be no Unreferenced Mysteries.

  • @BaoNguyen-yy3vw
    @BaoNguyen-yy3vw 2 роки тому

    great video, thank you so much

  • @marcostevanella6051
    @marcostevanella6051 2 роки тому

    Amazing, as always.

  • @saidafzalabdusattorov6037
    @saidafzalabdusattorov6037 2 роки тому

    Thanks , i hope you to make tutorial about Typescript ! Good luck ✊✊✊

  • @kulansky2002
    @kulansky2002 2 роки тому

    Good tutorial buddy. Currently struggling on callin API for Data with Redux and TypeScript... Maybe u gonna do smth like this in the future?

  • @hermangeku7461
    @hermangeku7461 9 місяців тому +1

    Very greate, i learn more things

  • @harag9
    @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.

  • @nicolasarcelin3220
    @nicolasarcelin3220 Рік тому

    Spectacular, thank you

  • @prasankumar4306
    @prasankumar4306 2 роки тому

    need full playlist as soon as possible

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 роки тому

      Thank you - the playlist will be added to weekly until complete. 🙏💯

  • @Hero1Love2
    @Hero1Love2 9 місяців тому

    Thank you 🙇🏾‍♂️ 🙏🏾

  • @dilucsuki8470
    @dilucsuki8470 2 роки тому

    I got incredibly confused with the examples in docs, I hope this helps me understand how to add async state

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 роки тому +1

      Later in the series, async thunks are covered. Even later, RTK Query is covered. Both are ways to issue async queries and update state.

    • @dilucsuki8470
      @dilucsuki8470 2 роки тому

      @@DaveGrayTeachesCode ty! I'm already in that part!

  • @MyriadColorsCM
    @MyriadColorsCM Рік тому

    Thanks for the tutorial, but I have a question: why use a useState to store the increment amount value when you could just create a new redux state on counterSlice?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому +1

      The official docs & tutorial may help further illustrate: redux.js.org/tutorials/essentials/part-1-overview-concepts#state-management

  • @mariusngaboyamahina9190
    @mariusngaboyamahina9190 2 роки тому

    This is an amazing tutorial. Thank you! Are you planning to do videos for RTK Query as well?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 роки тому +1

      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.

  • @jomaramomas7682
    @jomaramomas7682 2 роки тому

    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?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 роки тому +1

      Thank you! 💯 Yes, I want to do some tutorials on redux-saga in the future! 🚀

    • @jomaramomas7682
      @jomaramomas7682 2 роки тому

      @@DaveGrayTeachesCode Looking forward to it!

  • @siddiqahmed3274
    @siddiqahmed3274 2 роки тому +1

    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❤️

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 роки тому +1

      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.

    • @siddiqahmed3274
      @siddiqahmed3274 2 роки тому

      @@DaveGrayTeachesCode hmm... I'll try that. Thank you ❤️

  • @loussifchiheb8309
    @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 ❤

  • @arcosd63
    @arcosd63 2 роки тому

    Dave, I have a question. Why do we bring the counterSlices to the Counter and make them a function? I'm getting an error that increment, decrement etc are not a function?
    I can see incrementByAmount because it needs to add the number value?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  2 роки тому

      Hi David - We import increment, decrement, reset, and incrementByAmount from the counterSlice. You can view the example source code from the course resources link in the description. If you build the counterSlice file as shown in the example, increment, decrement, reset, and incrementByAmount will be "action creator" functions that can be dispatched.

  • @TravinskiyVladislav
    @TravinskiyVladislav 2 роки тому

    What the difference between using React Effector and Redux? Can i use effector instead of redux?
    This is bad idea at the current time?

  • @dipanshusingh
    @dipanshusingh Рік тому

    Love your videos.