useContext() + useReducer() = Magic?

preview_player
Показать описание
The React Context API can replace Redux - with React Hooks, it gets even more fun to use.

----------

----------

• Follow @maxedapps and @academind_real on Twitter

See you in the videos!

----------

Рекомендации по теме
Комментарии
Автор

The only person I understand his explanations so perfectly that I play his videos 2.0 or 1.75 speed lol :) You made my life simple Max thank you so so much. More love from Nairobi Kenya

salma_techie
Автор

omg. thank you for explaining the empty array [ ] inside of useEffect() in simple, plain english -- as well when I originally tried useState() and destructured ALL of my state variables in one declaration (instead of breaking them out) that I got odd results. thank you. thank you.

RicoCollins
Автор

Last three episodes are most time savings tut for me. I was researching on my own and on top of that when max explains things then surely there's no place for confusion anymore

md.akib
Автор

You're doing a great job of breaking down the content into small bits. I love it! Super helpful ❤️🙏

NirBenita
Автор

Thanks for making it understandable and most importantly NOT boring!

mateoc
Автор

I can't seem to find Part-1 of this video ! And thank you for your efforts, always a great help 👍🏻

alannamoos
Автор

Hi Max, There is one confusion regarding the globalState, if We keep all the state and method in this file, it will become complicated for the large project. how to separate state and related method and use as global Store. But in redux we can create separate reducer and combine via combineReducers.

cybercracker
Автор

Really nice video max! you're always with the latest topics! and another thing you could do too it's to set the initialState in the shopReducer params :)
Keep the good work Max!

StewyGeoduck
Автор

Nice video. It might be worth mentioning the testability you get when you outsource your state transformations, and make them pure.

xenopheliac
Автор

I’m sooo happy I found your channel! Have being learning a lot! Thanks :)

DenkSchuldt
Автор

I was struggling with this few days ago, wishing someone published a video about useContext and useReducer, and you did it, thanks. <3

javierbrenes
Автор

You saved me a lot of time. your teaching method is very good, it's very easy to understand at least for me me

iftikhar_hussain
Автор

I also like to use Higher-Order Components (HOC) to make function connectWithStore which allow me to provide my global store to child component there where I need it. Then in child component I use import for my function and create variables contains my connected component UI, which I export as like typical react component. By the way great tutorial :)

Ghornon
Автор

Moving to hooks and context api now! Thanks Max, you're the best! :D

ssengalanto
Автор

thanks Max, I learn Redux from useReducer Hooks, also you keep me Learning Max. Thanks, God blessed you.

kurniawanhendra
Автор

It's very helpful tutorial.
From the above description, the starting code and finished code point to the same github without GlobalState.js. Really appreciate if anyone point out the right github location.

ccapeng
Автор

Just what I'm challenged with at work right now... thanks for this!

aadams
Автор

hey you mentioned the part 1 of the video but there is no link to it.
pls add it. i really need to watch it. thanks

alimagnetic-iransenigma
Автор

Sometime i got lit bit confuse using context api when i want multiple reducer and state, should i use new provider or just put it all in one state as an object

primatondyaryakurniawan
Автор

Thanks for great footage!
btw, what createContext's args for?
Is it only for Intellisense?

shotatamura