Learn React Hooks: useReducer - Simply Explained!

preview_player
Показать описание

In this video we will learn about React hooks, starting with useReducer. This powerful React hook will allow you to enhance how you manage and mutate state in your React application. You will learn the difference between useReducer and useState, how to create your reducer function, how to define your actions and return a mutated copy of the state in your application.

In this new React world, hooks are here to stay, so it's best to learn them! In this tutorial I demonstrate the useReducer React hook, and I explain it very simply and in a way that is easy to understand. Enjoy!
Рекомендации по теме
Комментарии
Автор

Dude, you are soooo underrated. 600 views? this video deserves a million views. can't even tell you how many different videos i watched about useReducer and finally you found a way to explain it perfectly. Finally got it 🙏🙏
thank you thank you thank you..

catarinasilva
Автор

honestly, you're underrated. i learned more things from you than my college course.

forshetrial
Автор

I just want to say that these react hooks videos are by far the best and easiest to understand. They are fantastic for new devs and senior devs just getting into react. 😊

JasonRosensweig
Автор

Thank you so much Cosden! I've seen so many videos but it's just amazing how you are making this so simple.

tanmayawasthi
Автор

There is no other way to explain it easier than you did in this video... just mindblown :) Thanks for the video Cosden! 👏

zuznrdn
Автор

Please keep up doing videos like that! Very concise and clear!

evgenystarinsky
Автор

I feel like I just made it over a slump/ hurdle I’ve been stuck in for too long. But seriously… you’re videos have been SO helpful is getting over these hang ups. I appreciate what you’re doing here.

christopherlopez
Автор

This series on React hooks has been super informative. Really appreciate this content, these may be the best explanation videos I have ever watched, for any language.

WaffleStompz
Автор

It's important to understand the strictness of immutability is enforced. If you don't return a new object in your reducer the component will not re-render. This is a bit different if you're coming from redux-toolkit. Redux toolkit will give you a brand new object in your reducers. Great video

magiclover
Автор

Thank you so much! Your channel will grow lots with your great, clear, and concise explanations!

brunobrasil
Автор

Super clear and explanation again, the last example drove home the point on when to use it

robboerman
Автор

Such a great tutorial! Thank you and just subscribed :)

lovechayennelove
Автор

Very clearly explained. Thanks for making this . Subscribed.

johnacsyen
Автор

1:28 to 1:48, just summarization and I already got what it does. I did not use it really, but used redux, so it absolutely made sense. Thanks!

es
Автор

Great video! You helped me a lot. Thank you

anavashagashvili
Автор

thank you so much for the explanation!

pumpkinlyla
Автор

even my english is very bad but i can understand evry word you saying, and that's help me to get the information, thanks bro❤

SelfMotivation
Автор

The best explanation I've ever heard. I wish the best from Ukraine

maxkalashnyk
Автор

Darius, This is great,

Thank you so much for these contents you put out, i just joined the discord and i am excited about what you have on there, it is really mind blowing...

I want to suggest if you can make a YT short video, to talk about sample scenarios when it's is suitable to use useReducer instead of useState.

I feel this might clarify things better for Jr react devs like me.

Thank you.

devdesiignn
Автор

I'm really greatefull to you for making video like

abdulkhaleque