React Hooks: useReducer

Поделиться
HTML-код
  • Опубликовано: 20 янв 2025

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

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

    Hey Leigh, your explanations are very useful and easy to follow. Take me 3 hours to fully understand how this useReducer take the initial state and add as an argument into reduce function, and how dispatch send data in action.type. I'm super happy and proud now, thanks!

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

      Hey Neamtu! Thank you! I'm proud of you too, way to stick with something... that's what it's all about!

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

    I have watched so many youtube videos and udemy courses...so far yours is one of the best - very clear explanation and easily understood.

  • @Blackmamba-ce3nb
    @Blackmamba-ce3nb 2 года назад

    Thanks for this. I've been building increasingly complex things in react and have found it difficult to maintain individual state objects all the time. This is a much better pattern to utilize

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

    Your video thumbnails are unique. A circle and a background image of some landscape or something similar. I like the thumbnails so much

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

      Thank you Vijaykumar! I don't design the actual landscapes... those are made by James Gilleard - www.artstation.com/jamesgilleard, I'm just adding a circle and some text over them :)

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

    I have seen numerous videos on a real time scenario of useReducer.. but this one was by far the best one, great explanation.. keep up the good work

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

      Sweet!! I'm happy my explanation made sense :)

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

    Recording a tutorial in the dark..that's dedication! Thank you!

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

    Excellent video Leigh! Liked it so much and debugged it with you!

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

    Hey Leigh, thank you so much for this tutorial, I love the way you teach and break down stuff into abstract bits so I don't have to code along with that special use case app you're making, figure out what I actually need and then extract it to put it into my own app.
    Cheers!

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

      Thanks again Ginger! I try to make tutorials stand on their own as much as possible... isn't always the case, but I do my best!

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

    mate, you are doing this better than most -)
    very enjoyable. thanks

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

      Thanks, Ed!! I'm happy you found it useful!

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

    Got here with your XState videos, thank you for the frills-free information-centric videos! Keep it up!

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

      Thanks ChinchillaDave! Glad you enjoyed it!

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

    Thanks for this, im starting to learn useReducer and this is very helpful !!!

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

      You're welcome, Sebastian!! Glad you enjoyed it :)

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

    Great video, help me a lot .
    I start learning redux and its help me to understand how stuff working

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

      Awesome! After learning useReducer, you should check out useContext: ruclips.net/video/u06qAON66iw/видео.html
      It'll help you share your state with child components.

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

    Very good video. Thanks for including debugging also. :)

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

      Thanks Mika!! I typically leave it in unless it takes me way too long to figure out haha :D It's part of developing!

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

    Nice explanation!😊

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

    very cool tutorial, learned some cool tricks. Thank you!!

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

      Nice! Thanks Simphiwe, stay tuned for more videos coming soon!

  • @sa.a.a351
    @sa.a.a351 4 года назад

    Very good explained, thanks.

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

    I always read that the default... ie no match... should return the passed in sate unchanged.

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

    Good vid, new sub, thx much!

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

      You're welcome! Glad you liked it, Kristopher!

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

    thank you for tutorial !

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

    I don't know (not yet) if you have covered topics on optimization like reducing boilerplate. If you didn't that can be a helpful for everyone. The fact that e.g every one write the reducer using switch statement make junior developer to think that's the best practice.
    Here is the topic from redux: redux.js.org/recipes/reducing-boilerplate

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

      Hey Morteza! Personally I don't mind the switch statement, as long as it is clear to the programmer what is happening :)

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

    Español?

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

      No he hecho este video en español... peeeero, voy a hacer el proximo tema en español :)