Master Redux in 30 minutes with Todo List Project | Redux in React JS | Reducers | Actions

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ก.ย. 2024
  • Let's learn React Redux in one video with a Todo List Project including its concepts such as Reducers, actions, Provider, Middlewares like Redux Thunk, abd hooks like useDispatch and useSelector.
    If any questions, ask me here-
    / roadsidecoder
    Read the Written Article Here-
    / getting-started-with-r...
    _____________________________________________________
    Flexbox in 20 Minutes -
    • Master CSS Flexbox in ...
    React Router DOM Tutorial-
    • React Router Dom [ Ful...
    Make React App a PWA -
    • Convert React JS App i...
    Material UI -
    material-ui.com/
    Learn React From Scratch -
    • React JS Workshop Day ...

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

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

    Thank you brother for clearing several concepts of Redux.

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

    after watching this video, I understand well about reducers and actions. thank you sir .

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

      Glad you liked it. Don't forget to subscribe!

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

      @@RoadsideCoder yeah!! sure

    • @prachikhushal9138
      @prachikhushal9138 3 ปีที่แล้ว

      @@RoadsideCoder sir, can you please explain me how to set input field to empty after submit.

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

      Contact me on instagram @RoadsideCoder

    • @prachikhushal9138
      @prachikhushal9138 3 ปีที่แล้ว

      @@RoadsideCoder ok sir

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

    If anyone has problems with the list not showing up just go to your reducer and remove array from here case actions.ADD_TODO:
    return {
    todos: action.payload,
    ...state.todos,
    };
    the array was wrapping around action.payload, ....state.todo and couldnt get rendered because the output was todos: { 0: [ { id: ...., todos: ....} ]} so you would have to somehow map the 0 and so on so on

    • @amirchappalwala1568
      @amirchappalwala1568 3 ปีที่แล้ว

      Thank you so much man....this was really helpful

    • @varsa1198
      @varsa1198 3 ปีที่แล้ว

      @@amirchappalwala1568 glad I could help

    • @akarshankumar431
      @akarshankumar431 2 ปีที่แล้ว

      Remove array, u mean that [] brackets right?? at 18:45?

    • @akarshankumar431
      @akarshankumar431 2 ปีที่แล้ว

      Also can u share it here, pliz? I am having the same problem

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

      export const TodoReducer = (state = {todos : []},action)=>{

      switch(action.type){
      case "ADD" :
      return {
      todos: action.payload,
      ...state.todos,
      };
      case "REMOVE" :
      return {todo : action.payload};
      default :
      return state;
      }
      }

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

    Please bring more redux-based projects.

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

    Awesome tutorial 🙏

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

    Thank you for explaining

  • @asishtammana5305
    @asishtammana5305 3 หลายเดือนก่อน

    what is the use of initialState in store.js file? we have never used it in the code

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

    thanks

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

    Thanks brother'

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

    Thank you❤

  • @monkeystylle
    @monkeystylle 3 ปีที่แล้ว

    Awesome tutorial man.. can you do a Redux-Saga tutorial..

  • @tejalbhavsar4610
    @tejalbhavsar4610 3 ปีที่แล้ว

    greate video it can be more of it if you explained about thung littile big thogh

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

      Thanks Tejal.. Sure I'll make a standalone video for redux-thunk.. Also You can always refer to docs if u need the best explanation

  • @rangabharath4253
    @rangabharath4253 3 ปีที่แล้ว

    awesome bro

  • @zainbutt6270
    @zainbutt6270 3 ปีที่แล้ว

    Hey, what's the difference between Npx and Npm create-react-app. Couldn't find a good explanation on Google. Thanks

    • @RoadsideCoder
      @RoadsideCoder  3 ปีที่แล้ว

      I think npx is mostly used to fetch boilerplate packages..

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

    could you please share the source code for this?

  • @abhishekchhipa9585
    @abhishekchhipa9585 2 ปีที่แล้ว

    ive witeen the same code but , upon entering the todos list is not showing up ,help

    • @RoadsideCoder
      @RoadsideCoder  2 ปีที่แล้ว

      Try to compare your code with mine, must be some typo.

  • @siemen_subbaiah
    @siemen_subbaiah 3 ปีที่แล้ว

    what's the preferred way?
    is it the redux tool-kit way or this method

    • @RoadsideCoder
      @RoadsideCoder  3 ปีที่แล้ว

      Both have their own use cases, but toolkit is easier I believe.

  • @maxwelochieng7658
    @maxwelochieng7658 2 ปีที่แล้ว

    Why did you not return the state with the spread operator or did we not lose the state? like return {...state, todos:action.payload } because I did this with another application and got an error of a map function in the end.

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

      So the thing is with the curly braces, when you add those curly braces like example.map((e => {return (//Something)})) the retuen statement is necessary, whereas if you use example.map((e => ((//Something)))) normal braces there is no need to add "return"

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

    it says action is not defined
    gyes plzz can u help me

  • @DivyaPrakash-bj6zk
    @DivyaPrakash-bj6zk 2 ปีที่แล้ว

    Bro createStore is not available. What to do now. I guess react redux has been updated.

  • @akarshankumar431
    @akarshankumar431 2 ปีที่แล้ว

    Hey when i Click on Add/Go button, the page reloads, but the todo doesn't show up, can anyone help?

    • @RoadsideCoder
      @RoadsideCoder  2 ปีที่แล้ว

      Cam u compare your code with mine? Must be some typo.

    • @akarshankumar431
      @akarshankumar431 2 ปีที่แล้ว

      @@RoadsideCoder i did, like ik js, everything is correct, i am getting a warning in useSelector func..it says "Todo doesn't exist on type 'DefaultRootState'

    • @akarshankumar431
      @akarshankumar431 2 ปีที่แล้ว

      @@RoadsideCoder can ya help pliz?

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

      @@akarshankumar431 I Thing Your Code Is Wrong

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

    Please, could you activate the subtitles, I want to translate it into Spanish.
    Muchas gracias por tus videos, estoy comenzando con MERN.

  • @DeepakGupta-pz4fx
    @DeepakGupta-pz4fx 3 ปีที่แล้ว

    Redux saga and Redux thunk please make on video

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

    It's "okay" tutorial but I don't like how he uses logic inside of an action.

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

    Full seo, I don't know about meta tags..

    • @RoadsideCoder
      @RoadsideCoder  3 ปีที่แล้ว

      Next video will be on how u can improve react app's SEO

  • @therksingh
    @therksingh 7 หลายเดือนก่อน

    Nice ❤

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

    Add captions bro

  • @mdashiqurrahman2665
    @mdashiqurrahman2665 3 ปีที่แล้ว

    plz make a tutorial for redux toolkit

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

    not beginner friendly

  • @trazhcode6882
    @trazhcode6882 3 ปีที่แล้ว

    plzz make chat app and shopping cart with redux

    • @RoadsideCoder
      @RoadsideCoder  3 ปีที่แล้ว

      Yes The Chat App in planning stage.. Coming soon

    • @trazhcode6882
      @trazhcode6882 3 ปีที่แล้ว

      @@RoadsideCoder thank uu

  • @deepakgupta2084
    @deepakgupta2084 2 ปีที่แล้ว

    redux thunk pr video bna do

  • @mrrishiraj88
    @mrrishiraj88 2 ปีที่แล้ว

    🙏👍

  • @DeepakGupta-pz4fx
    @DeepakGupta-pz4fx 2 ปีที่แล้ว

    Github code???

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

    bhay tum hindi me nhi padha sakte yar hindi me padhate to bhut subscribers hote tumhare

  • @suranjanaghosh4469
    @suranjanaghosh4469 7 หลายเดือนก่อน

    Too fast, not understanding as a beginner.

  • @niklausmikaelson7332
    @niklausmikaelson7332 2 ปีที่แล้ว

    Brain shake

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

    not liked

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

    Thanks brother'

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

    Thanks brother'