React Redux using Hooks ( NEW useSelectore & useDispatch )

Поделиться
HTML-код
  • Опубликовано: 9 июн 2019
  • Redux and React-redux Hooks way simple state management example using create-react-app
    #reactHooks #react-redux #useDispatch
    Help the channel via patron and buying merchandise
    * / techsith
    * teespring.com/stores/techsith...
    Follow me for technology updates
    * / techsith
    * / techsith
    * / techsith1
    * / 13677140
    * / patelhemil
    Help me translate this video.
    * ruclips.net/user/timedtext_vide...
    Note: use translate.google.com/ to translate this video to your language. Let me know once you do that so i can give you credit. Thank you in advance.
  • НаукаНаука

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

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

    1 minute of content delivered in 12 minutes

  • @mendesdotdev
    @mendesdotdev 4 года назад +3

    Great Video! I was almost giving up on Redux because of the boilerplate and setup, but useSelector and useDispatch made my life a lot easier. Excellent explanation!!!

  • @avivshvitzky173
    @avivshvitzky173 5 лет назад +1

    These are amazing updates!
    Thank you for the video!

  • @doubledouble3454
    @doubledouble3454 4 года назад +1

    thats great i hardly find that great informative videos abour new apis. Thanks !

  • @sawyerrken8112
    @sawyerrken8112 5 лет назад

    Awesome tutorial... I think I'm beginning to catch up... lol. Its the first techsith tutorial I walked into, already knowing everything that would be covered (because I have already started using these hooks in ongoing projects). Thank you Techsith

  • @jacostaperu
    @jacostaperu 4 года назад +8

    great Tutorial, simple and easy to understand

  • @puli26990
    @puli26990 5 лет назад

    Great video ! Covering all the necessary basics !!

  • @aashayamballi
    @aashayamballi 5 лет назад +67

    Please do a tutorial on redux thunk with hooks.

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

      I know im randomly asking but does someone know of a way to log back into an instagram account..?
      I was dumb forgot the account password. I would appreciate any help you can offer me.

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

      @Porter Cooper instablaster ;)

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

      @Gerald Jace Thanks for your reply. I got to the site thru google and im trying it out now.
      Takes a while so I will reply here later when my account password hopefully is recovered.

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

      @Gerald Jace It worked and I now got access to my account again. Im so happy:D
      Thanks so much, you saved my account!

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

      @Porter Cooper You are welcome xD

  • @netanelvaknin579
    @netanelvaknin579 4 года назад

    Thank you for that great video. You helped me a lot. Keep going and make more good videos in the future :)
    Good luck!

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

    Simple and effective description. Respect everyone time. Thanks!

  • @michael.ahearn
    @michael.ahearn 2 года назад

    Thank you for doing this tutorial. It's very easy to understand.

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

    Thank you for every of your video, you always make it simplified, you make it easier to swallow for the begginers.

    • @Techsithtube
      @Techsithtube  4 года назад

      I am glad it helped . Thanks for the comment Bojan. :)

    • @mohak1990y
      @mohak1990y 3 года назад

      Where are actions gone?????

  • @Loficomposer
    @Loficomposer 5 лет назад +1

    thank you man that was a nice intro to react hooks do more we are waiting for more

  • @shivanisharma6647
    @shivanisharma6647 4 года назад

    That's was really a very nice explaination n the thing i liked the most when you cleared about useReducer , that it's not a redux thing. This was the thing I wanted to clear out.

  • @jesuscama5354
    @jesuscama5354 3 года назад

    Many thanks, clear and concise !

  • @jaybee4976
    @jaybee4976 3 года назад

    THANKS MAN YOU ARE A KING

  • @KDcoo
    @KDcoo 4 года назад

    Thank you very helpful and straight forward!

  • @centinela90
    @centinela90 3 года назад

    Thank you very much for your tutorial, it helped me! :D

  • @franzgm
    @franzgm 4 года назад +1

    tahnk youi very much, it was a nice explanation of a minimal redux :)

  • @chikechris4411
    @chikechris4411 4 года назад +1

    Wow. This is great. nice and simple

  • @tasawarhussain2063
    @tasawarhussain2063 4 года назад

    Simple and to the point. 👍

  • @paramjeetsingh7110
    @paramjeetsingh7110 3 года назад

    Very well explained ... thank you

  • @RNISjpsharma
    @RNISjpsharma 3 года назад

    Very clean-lucid react-redux sofar. Thanks.

  • @pragneshrohit4916
    @pragneshrohit4916 3 года назад

    My man you are the best. Thanks a bunch!

  • @amneetsandhu7734
    @amneetsandhu7734 3 года назад

    So easy to understand. thanks!

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

    what a great toturial just in 12 min,Thanks man you gave me wings to fly by redux in a short way

  • @jasonwelsh417
    @jasonwelsh417 4 года назад

    I just refactored one of my small apps from using useReducer and useState to usung Redux with this and it was a breeze. Thanks Techsith!

  • @petridev77
    @petridev77 3 года назад

    man you saved my life with these hooks. so clean and easy. watched a ton of stupid tutorials till i reached this one and its so easy to understand. thank you brother i subscribe now. have a great life! petri from romania.

    • @Techsithtube
      @Techsithtube  3 года назад +1

      Glad I could help Petri. Thanks for watching!

  • @egorpobylets6597
    @egorpobylets6597 5 лет назад +1

    Thank you for this video

  • @GuitarreroDaniel
    @GuitarreroDaniel 3 года назад

    This was so amazing, thank you very much for this!

  • @suganya32
    @suganya32 3 года назад

    Thank you. It's really useful.

  • @MrKaremnour
    @MrKaremnour 3 года назад +1

    To the point and clear,, u saved my time

    • @Techsithtube
      @Techsithtube  3 года назад

      Good to hear that it helped. Keep up the good work Kareem.

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

    thanks!! great, clear understandable explanation

  • @mhamzarajput
    @mhamzarajput 3 года назад

    perfect thanks, man. I got what I'm looking for.

  • @hbela1000
    @hbela1000 5 лет назад +1

    techSith is just pro.thx.

  • @lone-warrior-13
    @lone-warrior-13 5 лет назад +1

    Great tutorial thanks

  • @aashayamballi
    @aashayamballi 5 лет назад +2

    Thank you 😄

  • @asimbilal47
    @asimbilal47 5 лет назад +1

    great tutorial !!!!!!!!!! very helpful.

  • @haidrenamalia7167
    @haidrenamalia7167 5 лет назад +1

    super easy to comprehend, kudos for that!

    • @Techsithtube
      @Techsithtube  5 лет назад

      Glad you got it Haidren. Keep on learning

  • @ailengrimaldi5750
    @ailengrimaldi5750 4 года назад

    Thanks it helped me a lot

  • @pokerspace_pro
    @pokerspace_pro 4 года назад

    simple and great!

  • @herbertk9266
    @herbertk9266 5 лет назад +1

    Thanks alot i like it

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

    Thanks 😊

  • @Dirtyratsdotwebs
    @Dirtyratsdotwebs 5 лет назад +3

    I stayed for the joke, I was disappointed, I learnt a lot on the way to the joke, thus I am satisfied, great video thank you!

  • @debanjanbasu18
    @debanjanbasu18 4 года назад

    That was an awsm explaination.

  • @jasonwelsh417
    @jasonwelsh417 4 года назад +1

    Awesome tutorial as always

  • @vijayabhaskarkavuri6053
    @vijayabhaskarkavuri6053 5 лет назад +1

    Thanks for this video, when I worked with redux previously I felt like what the hell is this now too cool.

  • @Girlie_charmzzz
    @Girlie_charmzzz 4 года назад

    very nice.. thanks for sharing

  • @meganadams
    @meganadams 4 года назад +1

    Legendary. Cheers!

  • @subbumani7784
    @subbumani7784 3 года назад

    thanks bro

  • @phpmysql2007
    @phpmysql2007 3 года назад +1

    wow this is a lot easier than the old way of doing redux!

  • @josemiguelsanchez9124
    @josemiguelsanchez9124 3 года назад

    Excellent video

  • @nofacedude9959
    @nofacedude9959 3 года назад

    goddamn thank u for this helpful video :*

  • @lentsd
    @lentsd 3 года назад +1

    Nice explaining and good joke. Thanks!

  • @himanshusingh694
    @himanshusingh694 4 года назад

    Awesome video sir.
    Do we still have combineReducer in newer versions of React?

  • @stonecoldcold2941
    @stonecoldcold2941 3 года назад +1

    What extensions are you using for that arror function that makes the arrow longer and also, fonts are looking awesome and for dark background too.

  • @nayakashu
    @nayakashu 4 года назад +3

    @techsith All your tutorials, be it HTML, CSS, JS, and now React have been very concise and straight to the point and informative. That's what I like about your tutorials on RUclips. And that keeps me frequenting to them time and again. Keep doing the good stuff which you are doing now.
    And, also I am obsessed with the ending background music. Can you share the source for the same? I tried Shazam but it shows "No results".
    The music sounds very pumping and full of adrenaline.

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

      Ashutosh, the end music is actually from youtube's own music library, the name of the track is "still standing". Thanks for watching.

  • @tegaogheneovo5881
    @tegaogheneovo5881 3 года назад

    Love that confidence on da thumbnail..migos which way hook way

  • @rogeralexander1539
    @rogeralexander1539 3 года назад

    never knew who you were until now and i immediately subscribed solely based on your name.

  • @sirNemanjapro
    @sirNemanjapro 5 лет назад +38

    None, Dan Abramov has declared darkness a new standard.

    • @xerotolerant
      @xerotolerant 5 лет назад +2

      Abramov has spoken.

    • @perc-ai
      @perc-ai 5 лет назад +2

      Lord Abramov

    • @Techsithtube
      @Techsithtube  5 лет назад +2

      Sith agrees that Dan has moved to the dark side. :)

    • @jensenraylight8011
      @jensenraylight8011 4 года назад

      @@internet4543 they mixed it,
      they mix the container and component

    • @devolee8302
      @devolee8302 4 года назад

      @@internet4543 lol

  • @peynao
    @peynao 3 года назад

    Very useful. I've been few days reading the Official manuals from Redux and I couldn't see if they useDispatch and useSelect actually replace connect functionality or not.

  • @saskirakosyan5268
    @saskirakosyan5268 4 года назад +1

    Thanks )))

  • @fdc_8507
    @fdc_8507 5 лет назад +1

    wellcome back to React :)

  • @chips-n-salsa
    @chips-n-salsa 3 года назад

    great explanation..any cons of doing it this way compared to the older way?

  • @razzsawhoney2818
    @razzsawhoney2818 3 года назад +1

    One of the most common thing which most of the developers lack is the habit of not reading the documentation provided by the concerned tech... And the youtubers take advantage of that, they do read the docs well and present the same in their videos and we simply applause them... And by the way I am not an exception, I too do the same mistake😂😂🤣

  • @alienperspective8091
    @alienperspective8091 3 года назад

    thanks

  • @laurelineparis5407
    @laurelineparis5407 3 года назад

    Hi there, as usual your videos are great, time saving, really really understandable not like plenty of articles I could red till now.
    You didn't use action and action creators, wouldn't be interesting too ?
    thanks for everything again, Sensei Sama

  • @denisotim7640
    @denisotim7640 3 года назад

    I didn't mind the joke. great video!

    • @Techsithtube
      @Techsithtube  3 года назад +1

      Glad you enjoyed it! Thanks for watching!

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

    Nice video. If possible can you make one more video with real time example by using same concept

  • @sunilkumar9560
    @sunilkumar9560 4 года назад

    appreciate all your videos, can we make vdo on shallowequal thing in react ? it would be helpful.

  • @SajidAliSoftwareEngineer
    @SajidAliSoftwareEngineer 4 года назад

    awesome sir, I really appreciate your effort and the first time I understand it. Thank you

  • @power-tools
    @power-tools 4 года назад +1

    Thank you! but what about actions?

  • @swapnilsingh6069
    @swapnilsingh6069 5 лет назад

    hey techsith your video tutorial are awesome. please make a video on react deployment on shared hosting in any c panel and also it should run on subfolder like public_html/todo/index.html like this. thankyou sir your for your tutorials and content please make my requested video

  • @EatTheBlocks
    @EatTheBlocks 5 лет назад +1

    Not sure I really like useDispatch({type: ACTION_NAME}); Now need to import ACTION_NAME and also know the keys that need to be given to the object. WOuld be better if we could combine useDispatch with action creators somehow.

  • @karuneshkaimal
    @karuneshkaimal 4 года назад

    how would componentDidMount work here , lets say you want to do a get request at the time of rendering ?

  • @JA991
    @JA991 4 года назад +1

    10/10

  • @ravimone1
    @ravimone1 4 года назад

    Hello Sir, you are awesome, thanks for this wonderful explanation, I have few doubts regarding hooks
    1. Can we use some hooks(useState) in a class based component?,
    2. Since we have this useSelector & useDispatch, then why there is again a new thing useReducer, Is there a advantage over one another.
    3. Since we can acheve the store data using hooks, I beleive, we can develop the application completely using Hooks (useState, useEffects, ...), Then No need for Presentational & Functional pattern ? Anyone agree.
    4. In the example video, while calling dispatch, you called using arrow functions
    onClick={()=>{ dispatch(....)}}, But for performace reasons this is better `onClick={dispatch.bind(this, { type: "INCREMENT" }`

  • @Softkkey
    @Softkkey 4 года назад

    I think for those who are using Apollo and Graphql can manage this. But I see Face book and Airbnb use redux yet. I think it's still useful for very long application s with hundred of thousand of components. But I don't know if I really need to catch global state such as a login or sign-up or just still using higher order component with Apollo to pass the token .

  • @Gogosmo
    @Gogosmo 5 лет назад +1

    Two, one senior with the state and function and one junior with a changeLightBulp( ) callback.

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

    COME BACK KING

  • @psued0285
    @psued0285 4 года назад +23

    the joke is so funny that I forgot to laugh, lmao

  • @shubhodeeppaul4223
    @shubhodeeppaul4223 3 года назад

    please tell which theme you are using

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

    what's the music at the end please ?

  • @rahulkhokhariya2686
    @rahulkhokhariya2686 4 года назад

    Why does lost focus after type any char in InputText ? (I used hook only not with redux)

  • @kevgits
    @kevgits 3 года назад

    How do you update a multiple field state like "first name, last name, and amount using redux?

  • @warsame2245
    @warsame2245 5 лет назад +2

    hey techsith, are you ever gonna have a react course on UDEMY?

    • @Techsithtube
      @Techsithtube  5 лет назад

      I am working on it . most probably will release in JUly . I will announce it.

    • @warsame2245
      @warsame2245 5 лет назад

      @@Techsithtube If you can include the interview questions too, I think it will make your course stand out, out of all the react courses.

  • @014anirban
    @014anirban 2 года назад

    here we don't need to use connect method right ?

  • @aarondz789
    @aarondz789 4 года назад

    Hi,can i ask you about your arrow? => .... is it ⇒? How to achieve?

  • @nachoggz
    @nachoggz 4 года назад

    Hi guys, my code is not rendering the value from redux, but on the redux console Im seeing that the value. Do you know why?

  • @MrAndykofi
    @MrAndykofi 4 года назад

    Fantastic tutorial, you must be a lecturer.

  • @petridev77
    @petridev77 3 года назад

    can you make a tutorial on how to fetch api data and have it in state, list them and add them to cart, remove, see product info? the simplest way. thanks bro!

  • @jairzhino86
    @jairzhino86 4 года назад +1

    👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍

  • @andrelorchdeoliveira3790
    @andrelorchdeoliveira3790 3 года назад

    If you want to skip the setup and boilerplate jump to 7:28

  • @kazaakas
    @kazaakas 5 лет назад +1

    I love hooks, but I don't think I will be using this for my functional components. I can't imagine any way to make this as nicely unittestable as with `connect`. If you separately export the non-connected component for unittesting, you need can super conveniently inject whatever you want without needing mocking/context etc.

    • @Techsithtube
      @Techsithtube  5 лет назад

      Yes, that is an important question. I dont think its that hard to mock any of this as they are bunch of imports and functions. If you know react-testing-library some nice solutions for that.

  • @user-pd9no5ye5g
    @user-pd9no5ye5g 3 года назад

    nice comment))

  • @valaydesai1120
    @valaydesai1120 5 лет назад +1

    Do we need Redux when we now have Context API with useContext and useReducer hooks ?

    • @Techsithtube
      @Techsithtube  5 лет назад

      Yes with useReducer you cant use async actions like redux thunk . in future react may introduce it.

    • @natqe4049
      @natqe4049 5 лет назад

      No you don't need redux. react have all ever you need, and in better approach.

    • @leodriesch
      @leodriesch 4 года назад

      I would say for smaller applications useContext and useReducer will be enough. When your applications grow in size, Redux tooling like redux-logger and redux-thunk come in handy for debugging and cleaner code, so I would stick to Redux for bigger applications.

  • @AK-me3tl
    @AK-me3tl 4 года назад +1

    Change the light bulb? Are we mutating the light bulb directly? How dare you. Of course we build a new light fitting next to it, then destroy the old one ;)

  • @topsilog2236
    @topsilog2236 4 года назад

    Im a front wnd intern and we are currently working on a project where we use hooks and redux
    .i hope we can use this one ..can we mix this with midwares like saga or thunk?

    • @Techsithtube
      @Techsithtube  4 года назад +1

      yes you can mix the new hooks with saga and thunk it should work seamlessly.

  • @MrKaremnour
    @MrKaremnour 3 года назад

    Pro just one help in react native,, can you do turorial food app filter menu

  • @megphillips-91
    @megphillips-91 3 года назад

    Have you already done tutorial with Thunk and hooks? Please send me the link. Great video. Love the silly joke ;)

    • @mohak1990y
      @mohak1990y 3 года назад

      What action gone in Redux, Phillips?