ReactJS Course [14] - Redux Toolkit Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ก.ค. 2024
  • React Beginner to Advanced Course 2022! In this course I will be going over everything you need to know to go from a complete beginner in react, to being able to create big projects on your own.
    Course Code/Exercises: github.com/machadop1407/React...
    Course Discord: / discord
    🚀 Learn ReactJS By Building 6 Projects: codedamn.com/learn/reactjs-pr...
    🐙 GraphQL Course: codedamn.com/learn/graphql-fo...
    ► Buy Crypto on Coinbase: coinbase-consumer.sjv.io/PedroTech
    Social
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    Linkedin: / machadop1407
    Instagram: / _pedro.machado_
    Github: github.com/machadop1407
    Business Email: pedro@pedrotech.co
    * Ep 14 - Markers
    00:00 | Intro
    01:02 | Project Introduction
    02:02 | Package Installation
    02:39 | What is a Store?
    04:07 | Store Configuration
    05:30 | Provider in Redux
    07:01 | Creating Reducers for the Store
    07:27 | What is a Slice?
    08:52 | Creating the Slice
    15:29 | Configuring the Login Page
    24:22 | Typescript In Redux
    Tags:
    - ReactJS Tutorial
    - ReactJS Course
    - React Course
    #reactjs #course
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 88

  • @minhthien8651
    @minhthien8651 ปีที่แล้ว +13

    Thanks to you, now I become React native developer. I'm going to work tomorrow.

  • @elmaralijev7499
    @elmaralijev7499 ปีที่แล้ว +3

    Thanks, one of the best Redux Toolkit explanations you can find👍

  • @yajirushik2871
    @yajirushik2871 ปีที่แล้ว +3

    So I have obtained recruitment project, deadline 31 march, use React, Redux Toolkit(I have newer used it but I know context API so here I go) and testing library. React Front position, wish me luck!

  • @faizanahmed9304
    @faizanahmed9304 ปีที่แล้ว +17

    This course is going crazy

    • @PedroTechnologies
      @PedroTechnologies  ปีที่แล้ว +4

      Thank you!! I hope u mean cray in a good way hahaha

    • @excelemma5960
      @excelemma5960 ปีที่แล้ว +2

      Guess I'm not the only one

    • @hamzapaskingakhtar
      @hamzapaskingakhtar ปีที่แล้ว

      @@PedroTechnologies This redux is not good. Down to my 2 brain cells trying to wrap my head around it.

  • @dulnethbernard9638
    @dulnethbernard9638 16 วันที่ผ่านมา

    Only tutorial i could understand and apply to my project. Thank you and respect for not using counter as an example ❤

  • @davidzim2824
    @davidzim2824 ปีที่แล้ว +1

    Tank you Man you make it really clear

  • @otasch
    @otasch ปีที่แล้ว +2

    Hi Pedro, great work!
    I have one question. Is there a particular reason why you used type assertion (as UserState) instead of type annotation ( : UserState) on timestamp 27:20 ?
    Thanks!🦾

  • @mateuszpaszczyk5845
    @mateuszpaszczyk5845 ปีที่แล้ว +2

    Great job!💪 Can You show us how to work with ESlint/Prettier in this series?🙏

  • @kirthivaasan6309
    @kirthivaasan6309 ปีที่แล้ว +1

    Hi Pedro, your tutorials is very helpful.
    In Login component while getting name from redux store we have not defined the type for state for timebeing it was given any. Should we just we just give a string ?

  • @Sylar7773
    @Sylar7773 ปีที่แล้ว +2

    Thank You, very good job 💪

  • @slaffsla
    @slaffsla ปีที่แล้ว +18

    It is a completely new concept to me, so I needed to rewatch it to kinda get it. This topic was hard, frankly, and I don't feel I can just use my knowledge. Will try watching your dedicated redux video. Otherwise a very fun and enriching course. Thank you from the bottom of my heart!

    • @samplechannel2312
      @samplechannel2312 ปีที่แล้ว +1

      same feeling

    • @venkateshnani0207
      @venkateshnani0207 ปีที่แล้ว +2

      Same😂

    • @eshw23
      @eshw23 ปีที่แล้ว +2

      Its redux, its very hard for experienced devs to, dont worry about it, it will come with a lot of practice.

    • @hamzapaskingakhtar
      @hamzapaskingakhtar ปีที่แล้ว +1

      @@eshw23 Same bro. I have watched it 2 or 3 times now. Building a sketch on how it builds up step by step. That helps. Then would recreate it while explaining it to myself. Then build a similar project for myself using the concept

    • @goodgirl9484
      @goodgirl9484 9 หลายเดือนก่อน

      same

  • @kalixaegus4042
    @kalixaegus4042 ปีที่แล้ว

    Bro keep continuing this kind of tutorial like basic to advance. All my knowledge in web dev comes from your video and I love it so much. Next tutorial make a node js and express tutorial basic to advance like this vid. Good job bro my classmates keep watching your vid

  • @paologonzales4361
    @paologonzales4361 ปีที่แล้ว

    great video

  • @andresaliba
    @andresaliba ปีที่แล้ว +7

    Good video! Small tip: You can click anywhere in any line then press Alt + Shift + ArrowDown to copy that line down, no need to copy paste :)

    • @rnjack5427
      @rnjack5427 ปีที่แล้ว

      In my keyboard I needed use 4 buttons.. alt, shift, s AS arrow down button, function key for activate arrow key.. but I am now used to it.

    • @kartikkaushik8613
      @kartikkaushik8613 9 หลายเดือนก่อน

      I use Custom key For Ctrl+D Its a lot convenient rather than that annoying Default set key.

  • @muralikrishna9072
    @muralikrishna9072 ปีที่แล้ว +2

    Wow, This course going awesome ❤

  • @k303k
    @k303k ปีที่แล้ว

    Thank you so much Pedro!

  • @frontendwithsalimi
    @frontendwithsalimi ปีที่แล้ว

    hi pedro thank you for your course
    what course in your channel should i take after i finish this playlist course to be more advanced in react

  • @meraatmostafavi7758
    @meraatmostafavi7758 ปีที่แล้ว

    thanks that was great, just what I wanted
    ❤❤❤

  • @sumairimtiaz4545
    @sumairimtiaz4545 ปีที่แล้ว

    Superb. Thank you very much sir.

  • @aditya205
    @aditya205 ปีที่แล้ว +1

    Hey Pedro! I wanna ask something that is redux being used further in the final project of this playlist? Cause I'm having a bit problem in understanding it...if it's necessary so i will focus on redux for a while.

  • @user-ke9jo8dk2s
    @user-ke9jo8dk2s ปีที่แล้ว

    Great JOB!

  • @nro337
    @nro337 ปีที่แล้ว +2

    Awesome!

  • @Jonny2014D
    @Jonny2014D 16 วันที่ผ่านมา

    Been following you since day one of coding and I must say you’ve helped me get far and past imposter syndrome. First I have is, if I payed attention, I see you have only the store.ts file for redux. Is this correct? Second question is, so do we just create multiple slice functions, forgive me if that’s the incorrect vocab, for whatever we need to have flow with redux?

  • @sonamohialdin3376
    @sonamohialdin3376 ปีที่แล้ว

    Very useful tutorial thank you

  • @gopeshgoswami752
    @gopeshgoswami752 ปีที่แล้ว +8

    The entire course is really amazing, but am I the only one who is having issues understanding Redux :)

    • @eziosan7208
      @eziosan7208 10 หลายเดือนก่อน +1

      Same bro 😢

  • @alexyap9138
    @alexyap9138 ปีที่แล้ว +1

    Thanks Pedro! I liked how you explained everything so clearly. I haven't worked with React in a long time so this was a big help. You've earned yourself a new subscriber :) Anyway, back to studying! So many new things to learn!

  • @raymondtechmedia4469
    @raymondtechmedia4469 ปีที่แล้ว +1

    Great course

  • @doktatyph
    @doktatyph ปีที่แล้ว +5

    Please after this, teach us how to work with AsyncThunk with redux toolkit, I found so many tutorial out there but it's so hard to understand the concept, trust me I'd massively appreciate for that 🙏

    • @PedroTechnologies
      @PedroTechnologies  ปีที่แล้ว +5

      Im making an individual video for that!! The course will end with a project and a video on testing!

  • @stepforward5881
    @stepforward5881 5 หลายเดือนก่อน

    Hello , PedroTech. Ty for you great work.
    Could you help me with one problem? I can't figure out why did you use word "as" to assign interface for initialValue of slicer. What's the point and what is the rule? I can't find related info in documentation.

  • @mohamedibrahim3294
    @mohamedibrahim3294 ปีที่แล้ว

    you are amazing thank you for this awesome video

  • @pizzaitaliana9835
    @pizzaitaliana9835 ปีที่แล้ว

    It is worth mentioning that when you write your reducers logic and update state you do it by directly mutating it.
    As we know that practice is strictly forbidden in React, but Redux uses a library called Immer under the hood to make it possible.

    • @17Jo5uE
      @17Jo5uE 6 หลายเดือนก่อน

      Could you give an exmaple of the correct way to mutate the state? I'm new in react jeje

  • @AfonsoFilipeJr
    @AfonsoFilipeJr ปีที่แล้ว

    Muito bem explicado!

  • @fortnitesmash7166
    @fortnitesmash7166 ปีที่แล้ว

    Hey Pedro do we have to know redux ?
    To understand redux/toookit

  • @priyangpatel8135
    @priyangpatel8135 ปีที่แล้ว

    13:00 would'nt in reducer return { ...state, changeProperty } would be better for immutablity.

  • @neelchalke6836
    @neelchalke6836 11 หลายเดือนก่อน

    Thank You.

  • @kethakaranasinghe941
    @kethakaranasinghe941 ปีที่แล้ว

    Nice video bro🙂

  • @opeopemoni
    @opeopemoni ปีที่แล้ว +1

    Hello Pedro, thank you for giving the best courses ever !
    Everything is clear and well explained !
    I have a question, I have an error when I am trying to add a type "PayloadAction" for the action in the store
    It seems like "PayloadAction" can't be found.
    Do you, by any chance, know how to solve this ?
    Thanks !

  • @user-cu8nl5hy1k
    @user-cu8nl5hy1k ปีที่แล้ว

    This is absolutely the best video about RTK on TH-cam. I like the way he tackles the problem where in Redux you have multiple concepts that depend on each other and you sort of need to learn them all at once. Most YT tutorials fail to be good because of this issue. Here however Pedro nicely goes just as far as needed with one concept then jumps to another, and when you follow it sort of always makes sense what he is doing. +100

  • @saidberk6599
    @saidberk6599 10 หลายเดือนก่อน +1

    anyone facing Cannot read properties of undefined (reading 'value') issue?

  • @ritankarbhattacharjee7661
    @ritankarbhattacharjee7661 ปีที่แล้ว

    How to sustain the data in the state if somebody refreshes the page?

    • @mayor3367
      @mayor3367 ปีที่แล้ว +1

      Use localStorage for persistence.
      In the login reducer function, you can do something like this, localStorage.setItem('user', JSON.stringify(state.value.user))
      In order to ensure that it can be received before the browser loads, you can do something like this in the initialState,
      const receivedUser = localStorage.getItem('user');
      {
      value: {
      user: receivedUser ? receivedUser : ""
      }
      }
      In order to ensure that you can still logout, you can add the following to the logout reducer,
      localStorage.removeItem('user') //This removes the user item from the localStorage module.

  • @user-ke9jo8dk2s
    @user-ke9jo8dk2s ปีที่แล้ว +1

    Pedro, one more comment: for me it seems to be more difficult to use redux toolkid, create context much more understandable and easy to use.
    How do u think am i wrong about it?

    • @PedroTechnologies
      @PedroTechnologies  ปีที่แล้ว +5

      This is a common thought! Redux is ugly and we all agree that context api looks better. Thing is, whenever a state changes in a context provider, all the components using the context rerenders. So for large apps, just the context api isnt enough. But for beginners it is!

    • @user-ke9jo8dk2s
      @user-ke9jo8dk2s ปีที่แล้ว

      @@PedroTechnologies thanx, Pedro! Good Luck to you, and all your family!

  • @nanonkay5669
    @nanonkay5669 ปีที่แล้ว

    If you had covered data normalization, that would've been super

  • @Dev-Phantom
    @Dev-Phantom หลายเดือนก่อน

    cool

  • @alisajadahmadi978
    @alisajadahmadi978 8 หลายเดือนก่อน +1

    This is really new to me and I am in a foggy condition. I don't have ant idea about it. I am a little bit disappointed of myself

  • @appz5351
    @appz5351 ปีที่แล้ว +2

    Hi Pedro - One small tip for you. I would be really nice to have "starter files" so that I can follow what you are doing from the same point as you are in the start of the video. Instead of having to go though all the files and (sometimes guess) what has to be deleted.
    TLDR: Starter files would be awesome so it's easier to follow your video - Thanks.

    • @TylerDeaton-xz9cz
      @TylerDeaton-xz9cz ปีที่แล้ว

      Was thinking the same thing. Other courses I've done provide that. I was sometimes tempted to grab the files to make it easier to do the assignments, but I didn't want to accidentally see the solution.

    • @hamzapaskingakhtar
      @hamzapaskingakhtar ปีที่แล้ว

      It ain't that much. Don't be lazy man

  • @ProwlerDigital
    @ProwlerDigital ปีที่แล้ว +1

    Can you tell us what the project is going to be :)

    • @PedroTechnologies
      @PedroTechnologies  ปีที่แล้ว +1

      A small social media website! I believe is the best kind of project to teach the fundamentals. EP1 coming out tomorrow!!

  • @udaykulkarni5639
    @udaykulkarni5639 ปีที่แล้ว +3

    First❤

  • @feeltrig8822
    @feeltrig8822 ปีที่แล้ว +3

    Please do redux toolkit query in next one

  • @rakaa31
    @rakaa31 ปีที่แล้ว +3

    caan u make graphQL with React in this series!

    • @ritwik121
      @ritwik121 ปีที่แล้ว

      +1

    • @PedroTechnologies
      @PedroTechnologies  ปีที่แล้ว

      I have a graphql course already which includes integration with React!! I would recommend watching that one right after this series 😁

  • @verydifferentthought
    @verydifferentthought ปีที่แล้ว +1

    That's where things get very complicated...

  • @hamzapaskingakhtar
    @hamzapaskingakhtar ปีที่แล้ว +1

    What is happening>>>>>?????

  • @Kal-El-gm5pc
    @Kal-El-gm5pc 6 หลายเดือนก่อน +2

    This one was kinda confusing

  • @muhammadusmanakram406
    @muhammadusmanakram406 ปีที่แล้ว +1

    Its tough. I didn't get single thing.

  • @vityachess
    @vityachess 8 หลายเดือนก่อน +2

    Tough episode...

  • @jpcc1223
    @jpcc1223 ปีที่แล้ว

    deus abençoe

  • @olenayevtushok2014
    @olenayevtushok2014 ปีที่แล้ว +3

    OMG it's the most complicated video on the whole course... This topic needs slower explanation🤔

    • @jvoynar5826
      @jvoynar5826 ปีที่แล้ว

      Good news is, you can watch it many times!

  • @Dev-Phantom
    @Dev-Phantom 29 วันที่ผ่านมา

    cool