Zustand React State Management - Simpler Alternative to Redux

  Рет қаралды 13,780

Monsterlessons Academy

Monsterlessons Academy

Жыл бұрын

Learn Zustand React state management which does similar to Redux things but is much easier to start using. We will move a small project from Redux to Zustand and compare them.
► CHECK MY COURSES - monsterlessons-academy.com/co...
FOLLOW ME
► TWITTER - / monster_lessons
REFERENCES
► Source code - github.com/monsterlessonsacad...

Пікірлер: 26
@uquantum
@uquantum Ай бұрын
Thanks Oleksandr: very useful that you show an example with async try/catch action
@MonsterlessonsAcademy
@MonsterlessonsAcademy Ай бұрын
Very good!
@xxbondsxx
@xxbondsxx Жыл бұрын
The boilerplate involved in Redux is bananas -- zustand is such a refreshing alternative!
@MonsterlessonsAcademy
@MonsterlessonsAcademy Жыл бұрын
Yeap it is significantly less code.
@abdullahalhadi71
@abdullahalhadi71 4 ай бұрын
After 1 year this video still better than Official docs.
@MonsterlessonsAcademy
@MonsterlessonsAcademy 4 ай бұрын
Thanks!
@kasraaaa122
@kasraaaa122 11 ай бұрын
subscribed . thanks !
@MonsterlessonsAcademy
@MonsterlessonsAcademy 11 ай бұрын
Welcome!
@pinoyrunningpenguin
@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
@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.
@antonanton1206
@antonanton1206 6 ай бұрын
Спасибо
@mtsurov
@mtsurov 9 ай бұрын
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
@MonsterlessonsAcademy 9 ай бұрын
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_zakharchuk
@artem_zakharchuk Ай бұрын
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.
@MonsterlessonsAcademy
@MonsterlessonsAcademy Ай бұрын
I will add it to the list of ideas.
@bowlingverona
@bowlingverona Жыл бұрын
Is it persistent on refresh/reload page? thx for the great explanation
@MonsterlessonsAcademy
@MonsterlessonsAcademy Жыл бұрын
No. There is no state management that does it but you can build it with local storage, etc.
@thebunsenburner
@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
@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
@jessyndaya9487 Жыл бұрын
Yes of course you must add presist like import { persist} from 'zustand/middleware'
@eliassmith7949
@eliassmith7949 Жыл бұрын
Have you tried Signals?
@MonsterlessonsAcademy
@MonsterlessonsAcademy Жыл бұрын
Nope
@waleedsharif618
@waleedsharif618 Жыл бұрын
This is even easier than redux toolkit, can we use this instead of redux? I mean for work?
@MonsterlessonsAcademy
@MonsterlessonsAcademy Жыл бұрын
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.
@user-dv7lp6sk6m
@user-dv7lp6sk6m Жыл бұрын
😂😂😂😂 English 😂😂😂😂😂😂 😅😅😅😅😅
@antonanton1206
@antonanton1206 6 ай бұрын
Don't laugh. He is the best for not English native speakers.❤
State Managers Are Making Your Code Worse In React
13:33
Web Dev Simplified
Рет қаралды 164 М.
Vivaan  Tanya once again pranked Papa 🤣😇🤣
00:10
seema lamba
Рет қаралды 34 МЛН
Дарю Самокат Скейтеру !
00:42
Vlad Samokatchik
Рет қаралды 2,8 МЛН
Знакомство с Zustand - лучшей заменой Redux
29:35
Михаил Непомнящий
Рет қаралды 29 М.
React state management crash course | Zustand
19:50
Hitesh Choudhary
Рет қаралды 53 М.
Why I Moved from React Redux to Zustand and Why You Should Too!
19:24
Smarter and Simpler React State
26:46
Jack Herrington
Рет қаралды 55 М.
This Library Makes State Management So Much Easier
12:07
Web Dev Simplified
Рет қаралды 131 М.
First Look at Zustand in React: State Management Made Painless!
14:39
Josh tried coding
Рет қаралды 7 М.
Angular 18 Features: A Game-Changing Evolution
7:35
Monsterlessons Academy
Рет қаралды 10 М.
I Tried 5 Redux Alternatives and Here is the Best one
16:48
CoderOne
Рет қаралды 21 М.
NextJS + State Management = Good Idea???
41:08
Jack Herrington
Рет қаралды 98 М.
📝 React and Zustand Unite: The Ultimate Todo List Tutorial
16:39
Code Radiance
Рет қаралды 2,2 М.
Vivaan  Tanya once again pranked Papa 🤣😇🤣
00:10
seema lamba
Рет қаралды 34 МЛН