Redux CRUD Tutorial in React - Redux Toolkit Tutorial

Поделиться
HTML-код
  • Опубликовано: 9 окт 2024
  • In this video I will teach you all how to code a CRUD (Create, Read, Update, Delete) application using Redux in React. I use redux toolkit to make this happen :)
    CODE: github.com/mac...
    🚀 Learn ReactJS By Building 6 Projects: codedamn.com/l...
    🐙 GraphQL Course: codedamn.com/l...
    ► Buy Crypto on Coinbase: coinbase-consumer.sjv.io/PedroTech
    Social
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    Website: machadopedro.com
    Linkedin: / machadop1407
    Instagram: / _pedro.machado_
    Github: github.com/mac...
    Business Email: pedro@pedrotech.co
    Tags:
    ReactJS Tutorial
    ReactJS and MySQL
    NodeJS Tutorial
    API Tutorial
    #reactjs #redux

Комментарии • 134

  • @shinobi_coder88
    @shinobi_coder88 2 года назад +17

    Thanks for making me addicted to your contents bro, I'm a frontend dev and discovered great opportunities in many of your videos. Easy to understand and very straightforward! Keep making new amazing videos and help your subscribers to achieve their goals ✌️

    • @PedroTechnologies
      @PedroTechnologies  2 года назад +1

      Hahahaha it makes me happy to know your liking the content! Good luck on ur journey :)

    • @shinobi_coder88
      @shinobi_coder88 2 года назад

      @@PedroTechnologies Yo Pedro, I just got curious in some ways about your blog tutorial with firebase v9 Auth and Firestore in React. Is it possible if I create a similar project with Next.js, Firestore, and NextAuth instead of Firebase Auth??

  • @vjp2866
    @vjp2866 2 года назад +6

    Man you are a treasure I found in the internet !!! Keep it up bro, im seeking lot of react tutorials from you. Hope you are getting enough payments from youtube, you need a lot of payment !

  • @connergoldberg
    @connergoldberg 2 года назад +23

    Awesome stuff Pedro! Could you perhaps do a tutorial on using redux-thunk in order to integrate async middleware into redux through the use of apis?

  • @syedabdulsuboor1415
    @syedabdulsuboor1415 9 месяцев назад

    Hey Pedro,
    Just wanna say that I was just struggling to understand Redux by watched around 4-5 videos, but that weren't as easy as yours. Thanks a lot of man !

  • @ajitshaw1936
    @ajitshaw1936 2 года назад +2

    You are the most awesome teacher I have seen, I have been trying to learn redux for a long time and now after this, I can proudly say I have learned it.

  • @ismetomerkoyuncu1179
    @ismetomerkoyuncu1179 2 года назад +1

    i just found you in this monday and you are just amazing, i mean its like your advices and tutorials are more effective.

  • @murat6018
    @murat6018 2 года назад +3

    I really enjoy your tutorials man. You're really, really good at teaching. Everything is simplified and easy to follow. You deserve more views IMHO.

  • @deafworm777
    @deafworm777 Год назад

    Man this tutorial is very clear even for those who know nothing about react

  • @randerins
    @randerins 2 года назад +6

    Justamente o video que precisava pra concluir meu bootcamp. Valeu Pedro!

  • @mansoob
    @mansoob 2 года назад +1

    Great tutorial, cleared many ambiguities. You presented it in a quite logical way the app should have been developed. Quite simplified.

  • @jason96G
    @jason96G 2 года назад +2

    I would reccomend using a forEach method instead of map method in the updateUsername action. This will eliminate any console warning about not having a return in the map method.

  • @holderchannel4393
    @holderchannel4393 Год назад

    Thanks so much for your dedication! I love this video. I am a react developer and I really love using Redux to manage states in my applications.

  • @КлимСомов-х6с
    @КлимСомов-х6с 2 года назад +1

    I don't understand why you change state strictly. What about immutable? I was teached on my course that we can't change state straight, we should mede copy {... state}. Or maybe toolkit provides us such possibility to change state "right on face"? Thank you for the video!

  • @mouhanedakermi4019
    @mouhanedakermi4019 2 года назад +1

    Absolutly amazing like always Pedro !
    You made me fall in love with your content ❤

  • @dalandan8300
    @dalandan8300 2 года назад +1

    I'm "mukbanging" your videos this year and become a better programmer.new subscriber here from Ph

    • @PedroTechnologies
      @PedroTechnologies  2 года назад +1

      Hahaha glad to hear! Thank u for watching :)

    • @ujenbasi9495
      @ujenbasi9495 2 года назад

      @@PedroTechnologies sir, today i just completed the graphql video. I really enjoyed that video. Can you please make more videos on graphql??

  • @WellMetMunro
    @WellMetMunro Год назад +1

    Nice CRUD app that covers everything I wanted to know. Thanks.

  • @donnazukowski
    @donnazukowski 2 года назад

    I love your channel because you ARE a programmer who works with this tech stack. You layout your videos as to what a programmer would need. I loved your React/Firebase tutorial. Is it possible to do that one again using Redux?

  • @hardwired66
    @hardwired66 2 года назад +2

    waw my requestt last month, thank you pedrooo ❤️

  • @AlEgorova
    @AlEgorova Год назад +1

    Thanks! Very helpful!!! Can we have a bigger CRUD project with backend and redux?

  • @youngfather320
    @youngfather320 2 года назад +1

    Good job Pedro! Thank you for your awesome tutorial. Keep doing it!!!

  • @josesantillan732
    @josesantillan732 Год назад

    Amazing Pedro!! Killing it, man. Keep it that way

  • @oscaranillo7131
    @oscaranillo7131 Год назад

    Pretty awesome, clear and very well explained! Keep up the good work!

  • @marcosmeneghetti3261
    @marcosmeneghetti3261 2 года назад +1

    Ola, Pedro, tudo bem?
    Primeiramente gostaria de agradecer pelos incriveis tutoriais que voce proporciona na internet. Sao muito bons.
    Mas eu estou tendo alguns problemas que eu gostaria de saber como corrigi-los.
    1- SE eu deleto todos os elementos da lista, e quero acrescentar um novo, eu recebo uma mensagem de erro - Cannot read properties of undefined.
    2- Se eu coloco Amanda no input de Leanne Graham, ele muda o username de Leanne Graham sem problemas. So que se eu clicar no botao updateusername sem colocar nada no input do Ervin Howell, o username de Ervin Howell tambem muda para Amanda. Tem como zerar os inputs para evitar acumulo de usernames, assim eu consigo fazer update para cada um com o nome correspondente para cada um.
    3-Se o input esta vazio, ele tira o username de cada elemento. Tem como fazer si input esta vazio nao mude o username?
    Mais uma vez muito obrigado pelos incriveis tutoriais.

  • @mabrarhassan
    @mabrarhassan Год назад

    i doubt if you change username of first row and then click the update but on second row, the state value will be applied to second row. 😃

  • @skyMedia011
    @skyMedia011 2 года назад +1

    Perfect explanation.
    Thanks mate 🙏

  • @aaxxll3550
    @aaxxll3550 2 года назад

    thank you so much for all the effort you put into your videos, you don't know how much you've helped me!

  • @vichesayolana1738
    @vichesayolana1738 2 года назад

    Thankyou sooo muuuch Pedro!
    I really love your explanation.

  • @dkevin1553
    @dkevin1553 2 года назад +2

    Thanks for the great video. Can you please tell which VSCode theme are you using in this video?

    • @ManfredAlberto
      @ManfredAlberto 2 года назад

      Palenight Theme and Material Icon Theme.

  • @surajsoni3678
    @surajsoni3678 2 года назад

    Amazing video. you made every concept easy. God bless you

  • @JamesSmith-yj7wq
    @JamesSmith-yj7wq 2 года назад

    Hello pedro, awesome video.. can you please also advise how can we persist the data in a storage because currently when we refresh the app, the store is refreshed?

  • @zqgAFf
    @zqgAFf Год назад

    That's a greet video ,but if you can add some maitain or reserve function will be better ,for example use fireBase Storage, and add fetch logic to make what we created, updated ,deleted ....

  • @amrutkhot992
    @amrutkhot992 2 года назад +1

    Thanks for this Video.. ! Your Previous video on redux was also Good....! Btw, which theme you are using for VSCode ?

    • @ManfredAlberto
      @ManfredAlberto 2 года назад

      Palenight Theme and Material Icon Theme.

  • @woofcode3383
    @woofcode3383 2 года назад

    Thanks so much Pedro, another great tutorial!

  • @iam_djumanov
    @iam_djumanov Год назад

    I Really fan of your videos .... Pedro Is it all about Redux Toolkit ? Thanks for answers .....

  • @wotizit
    @wotizit 2 года назад

    "He's back" - Minister of magic

    • @wotizit
      @wotizit 2 года назад

      Might use context api

  • @yasinnkhann
    @yasinnkhann 2 года назад

    Do you think it’s worth learning the old redux way? Map dispatch to props and all that? If so, could you make a video on that?

    • @137dylan
      @137dylan 2 года назад

      It might be useful for legacy code bases and or class components. There are some videos on YT. Overall tho I would focus on modern techniques that include hooks and functional programming.

  • @vincent3542
    @vincent3542 2 года назад

    good explanation pedro, but there is one thing that bothers me. what value does "reducer deleteUser" hold when calling "dispatch" to delete a specific user in App.js? if I try to guess maybe when the "delete user" button is pressed then the "action.payload" in "deleteUser" in "users.js" will be an object with the user we want to delete. Is that true?

    • @connergoldberg
      @connergoldberg 2 года назад

      The action.payload will give you whatever information was dispatched by your component. So if a delete button is clicked it will dispatch a payload to the deleteUser reducer and that payload is equal to whatever was dispatched.

  • @nanonkay5669
    @nanonkay5669 2 года назад

    Why not use the createEntityAdapter api for crud operations? It works like magic. But it is kinda advanced, I won't lie

  • @ssk7690
    @ssk7690 Год назад +2

    There's a small bug when you delete every item and then try to add a new user.
    Fix:
    dispatch(
    addUser({
    id:
    userList.length !== 0 ? userList[userList.length - 1].id + 1 : 1,
    })
    );

  • @ThColinPereira
    @ThColinPereira 2 года назад

    Super helpful, thanks Pedro!

  • @SvetaSveta-ms4hi
    @SvetaSveta-ms4hi 2 года назад +1

    Thanks a billion! 🙏 Extremely useful.

  • @worldclasscode1847
    @worldclasscode1847 2 года назад

    Awesome tutorial. Is the state persistent in this tutorial app? If I hit refresh, will the state persist?

    • @connergoldberg
      @connergoldberg 2 года назад

      It depends on if you are calling reducers within your parent components which can override state in your child components, but by and large..yes refreshing the ui will still persist the state

  • @Star-hw8bh
    @Star-hw8bh 2 года назад

    Thank you so much. I wonder why there's not timestamps in this one

  • @georgeasv.4214
    @georgeasv.4214 2 года назад

    Top content as always !!

  • @danlleo
    @danlleo 2 года назад +1

    Thanks! Great as always 😊

  • @ggrisch
    @ggrisch Год назад

    When you use map function the first jsx element must have unique key prop.

  • @GreatAdib
    @GreatAdib 2 года назад

    can you do this with django rest framework api and consume this in react with redux with CRUD (image upload also) this would be a nice project👌👌

  • @Prince_515
    @Prince_515 2 года назад

    Hey, what theme do you use? Also, I just started the Graphql course on your YT and the course is really helpful and detailed, thank you for that!!

    • @aprovado597
      @aprovado597 2 года назад

      Same question

    • @ManfredAlberto
      @ManfredAlberto 2 года назад

      Palenight Theme and Material Icon Theme.

    • @ManfredAlberto
      @ManfredAlberto 2 года назад

      @@aprovado597 Palenight Theme and Material Icon Theme.

  • @patrickudeh5869
    @patrickudeh5869 2 года назад

    Good one bro..
    Any link for full mern stack app?....

  • @conspirisi
    @conspirisi 2 года назад

    How to I get a component to rerender everytime a redux store updates and the component reflects the changes of the store? I can get the initial state using useSelector, but after that it doesn't update.

  • @rahulsutar6263
    @rahulsutar6263 2 года назад

    awesome i love it, thank you so much for this video

  • @ManfredAlberto
    @ManfredAlberto 2 года назад

    Great tutorial, thanks!

  • @hamzashaikh571
    @hamzashaikh571 2 года назад

    Awesome video, learnt a lot

  • @kelvintafadzwamaringire4504
    @kelvintafadzwamaringire4504 Год назад +1

    Great content great music ❤‍🔥❤‍🔥❤‍🔥🔥🔥

  • @shivanshpatel4072
    @shivanshpatel4072 2 года назад

    Awesome video Man

  • @faris.abuali
    @faris.abuali 2 года назад

    Thanks Pedro!

  • @binitrupakheti4246
    @binitrupakheti4246 2 года назад

    I used valtio for global state management and react query for server state and never looked back to redux.

  • @Rei-m3g
    @Rei-m3g 2 года назад

    TypeError: undefined is not an object (evaluating 'userList[userList.length - 1].id')
    says so when i delete all the user

  • @aryamitrachaudhuri6564
    @aryamitrachaudhuri6564 2 года назад

    Thank you Pedro!

  • @deepaknarayanchilmule2767
    @deepaknarayanchilmule2767 2 года назад

    Very helpful bro.
    More on redux please...

  • @dheerajtp5701
    @dheerajtp5701 2 года назад

    Hey pedro can u give an intro to store these items in local storage using toolkit ? Btw thnx for all the videos brother

    • @connergoldberg
      @connergoldberg 2 года назад +1

      In your reducer, just put the item in localstorage if it doesnt exist already and remove whenever you want.

    • @dheerajtp5701
      @dheerajtp5701 2 года назад

      @@connergoldberg ok bro will try thnx brother

  • @francogaliotti3837
    @francogaliotti3837 2 года назад

    You are the best pedro

  • @johnsunday3548
    @johnsunday3548 2 года назад

    Great content mentor...more Grace sir...pls redux toolkit , react and firebase.

  • @alimozaffari3539
    @alimozaffari3539 2 года назад

    Thank you for your nice tutorial. I have tried to get data from API instead of local fakeData as you used in this tutorial. But I could not receive data. I faced error of "Uncaught TypeError: xxx.map is not a function
    at App (App.js:10:1)". Please help guide me what to do.
    Thanks

    • @ericmomoh7927
      @ericmomoh7927 2 года назад

      Hope you have found out? You can connect with me on LinkedIn if you are still interested in knowing it

  • @skyMedia011
    @skyMedia011 2 года назад

    How can I store my useState hook in redux toolkit?

  • @ashish_prajapati_tr
    @ashish_prajapati_tr 2 года назад +1

    what is the theme you are using?

    • @ManfredAlberto
      @ManfredAlberto 2 года назад

      Palenight Theme and Material Icon Theme.

  • @GonzaloGuevaraFreire
    @GonzaloGuevaraFreire 2 года назад +1

    Hola, consulta, el tema de iconos para VSCode que estás usando , cual es ?

  • @owltrades
    @owltrades 2 года назад

    Thanks Pedro ❣

  • @sumairimtiaz4545
    @sumairimtiaz4545 2 года назад

    Thank you very much sir.

  • @giorgikiladze1151
    @giorgikiladze1151 2 года назад

    thanks was really helpfull

  • @Kamim78
    @Kamim78 2 года назад

    Great, Thanks so much :)

  • @andrewsmal5173
    @andrewsmal5173 2 года назад +1

    That’s amazing thx

  • @abhishekrawat8579
    @abhishekrawat8579 2 года назад

    great video sir❤️

  • @VinciJeremy789
    @VinciJeremy789 4 месяца назад

    "dispatch is not a function"
    -this error is coming. What to do😢

  • @codemize
    @codemize 2 года назад

    Well done👌🥳

  • @viniciussantosaguiar9543
    @viniciussantosaguiar9543 4 месяца назад

    Super!! Very Cool!!!

  • @murali7370
    @murali7370 2 года назад

    Thanks Pedro

  • @inihood
    @inihood Год назад

    I love this 😍

  • @naveenkarthik4495
    @naveenkarthik4495 2 года назад

    Thanks a lot!!!!

  • @MashxuraXakimova-si4le
    @MashxuraXakimova-si4le Год назад

    Good job 👏 👍 👌

  • @jorgedavalos5663
    @jorgedavalos5663 2 года назад

    can you do this tutorial with recoil? 😬

  • @nargizgasanova6222
    @nargizgasanova6222 2 года назад

    thank you

  • @indiancuriousvoice8773
    @indiancuriousvoice8773 7 месяцев назад

    Make a industry level mern project

  • @ichigokuro3986
    @ichigokuro3986 2 года назад

    What's your vscode theme?

    • @ManfredAlberto
      @ManfredAlberto 2 года назад

      Palenight Theme and Material Icon Theme.

  • @cuneytdonmez214
    @cuneytdonmez214 2 года назад +1

    Thanks...

  • @saudkhan1080
    @saudkhan1080 2 года назад +4

    Mor react redux plzz ❤️

    • @PedroTechnologies
      @PedroTechnologies  2 года назад +4

      More to come :)

    • @skyhappy
      @skyhappy 2 года назад

      @@PedroTechnologies Redux can be unnecessary overhead I wouldn't want more tbh

  • @percentage42
    @percentage42 2 года назад

    Where is the source code for this tutorial?

  • @tumon001
    @tumon001 2 года назад

    Make a simple chat app tutorial.
    don't need to focus on UI too much.
    We are waiting...

  • @informationtechtips5391
    @informationtechtips5391 8 месяцев назад

    Hy Masha Allah

  • @alihafezis
    @alihafezis 2 года назад

    great

  • @manoj-k
    @manoj-k 2 года назад

    🔥🔥🔥

  • @filipevalentegomes2383
    @filipevalentegomes2383 2 года назад +1

    When you use something like recoil, then you realize how overcomplicated they made redux. Even with redux toolkit, it still looks all over the place. The video was great, redux just isn't.

    • @PedroTechnologies
      @PedroTechnologies  2 года назад +1

      I guess it depends on what you are used too! Both have very good support, I will make a vid on comparing all the state management libraries.

  • @mohamedyoussef8835
    @mohamedyoussef8835 2 года назад

    Awesome video +++++++++++++++++++++++++++++++

  • @sayamrahmanrobin2969
    @sayamrahmanrobin2969 Год назад

    good

  • @fatehmr6681
    @fatehmr6681 2 года назад

    There are some bugs in your application

  • @ivanrabelo1558
    @ivanrabelo1558 Год назад

    vc é brasileiro?

  • @msh_dev
    @msh_dev 2 года назад

    Theme name?

    • @ManfredAlberto
      @ManfredAlberto 2 года назад

      Palenight Theme and Material Icon Theme.

  • @aliomer9049
    @aliomer9049 2 года назад +1

    😍😍😍😘

  • @AmpreaRamingo
    @AmpreaRamingo 2 года назад

    Mettetela un po' di pubblicità ogni tanto...

  • @osamayousuf6135
    @osamayousuf6135 2 года назад