WATCH NEXT: React Interview Questions and Answers - Dominate Your Next Interview - kzbin.info/www/bejne/r4Kro2elpd-ShJIsi=51b2XP_84GH3q6oF
@uquantum7 ай бұрын
Thanks Oleksandr: very useful that you show an example with async try/catch action
@MonsterlessonsAcademy7 ай бұрын
Very good!
@xxbondsxx Жыл бұрын
The boilerplate involved in Redux is bananas -- zustand is such a refreshing alternative!
@MonsterlessonsAcademy Жыл бұрын
Yeap it is significantly less code.
@abdullahalhadi7110 ай бұрын
After 1 year this video still better than Official docs.
@MonsterlessonsAcademy10 ай бұрын
Thanks!
@mtsurov Жыл бұрын
Can anybody educate my why I would pick Zustand over setting a context provider (useContext) and have desired components interact with it ? Just trying to understand the utility before i commit to learning curve.
@MonsterlessonsAcademy Жыл бұрын
You question sounds more like you don't understand why we need Redux in comparison to useContext. Because Zustand is the alternative to Redux. I made a video about that kzbin.info/www/bejne/rIaoknela8aLn8Usi=CTyGghE0Zwmkd2vb
@artem_zakharchuk7 ай бұрын
Great tutorial. But it would be great to see how slice in Zustand works(( For me, it is hard to understand how states are connected.
@MonsterlessonsAcademy7 ай бұрын
I will add it to the list of ideas.
@pinoyrunningpenguin Жыл бұрын
Which state management would you recommend? It gets confusing since there are so many choices. But which one is simplest and not complex?
@MonsterlessonsAcademy Жыл бұрын
It you don't know any and learn React to get a job I highly recommend Redux as a most popular solution across the companies. The simplest for me that I prefer is React Query + Jotai. But for teams, companies I would still pick Redux as it is easier to find devs and more people know it.
@bowlingverona Жыл бұрын
Is it persistent on refresh/reload page? thx for the great explanation
@MonsterlessonsAcademy Жыл бұрын
No. There is no state management that does it but you can build it with local storage, etc.
@thebunsenburner Жыл бұрын
@@MonsterlessonsAcademy if I'm not mistaken, Zustand lets you set up persistence fairly easily with importing persist middleware within the zustand store. I'm currently using it to persist data. Their docs have a few lines on this.
@MonsterlessonsAcademy Жыл бұрын
@@thebunsenburner Sure but so are any other state management. I get a lot of questions that people assume that redux/etc saves data between reloads
@jessyndaya9487 Жыл бұрын
Yes of course you must add presist like import { persist} from 'zustand/middleware'
@eliassmith7949 Жыл бұрын
Have you tried Signals?
@MonsterlessonsAcademy Жыл бұрын
Nope
@antonanton1206 Жыл бұрын
Спасибо
@kasraaaa122 Жыл бұрын
subscribed . thanks !
@MonsterlessonsAcademy Жыл бұрын
Welcome!
@waleedsharif6182 жыл бұрын
This is even easier than redux toolkit, can we use this instead of redux? I mean for work?
@MonsterlessonsAcademy2 жыл бұрын
You certainly can I doubt that it will break in a week or you will have problems. By for myself I like old stable solutions that worked years in prod. So for company or business I would pick redux is a more popular solution / easier to find devs / etc.
@ВикторКудрин-ь5н Жыл бұрын
😂😂😂😂 English 😂😂😂😂😂😂 😅😅😅😅😅
@antonanton1206 Жыл бұрын
Don't laugh. He is the best for not English native speakers.❤