Zustand React State Management - Simpler Alternative to Redux

  Рет қаралды 14,481

Monsterlessons Academy

Monsterlessons Academy

Күн бұрын

Пікірлер: 27
@MonsterlessonsAcademy
@MonsterlessonsAcademy 4 ай бұрын
WATCH NEXT: React Interview Questions and Answers - Dominate Your Next Interview - kzbin.info/www/bejne/r4Kro2elpd-ShJIsi=51b2XP_84GH3q6oF
@uquantum
@uquantum 7 ай бұрын
Thanks Oleksandr: very useful that you show an example with async try/catch action
@MonsterlessonsAcademy
@MonsterlessonsAcademy 7 ай бұрын
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 10 ай бұрын
After 1 year this video still better than Official docs.
@MonsterlessonsAcademy
@MonsterlessonsAcademy 10 ай бұрын
Thanks!
@mtsurov
@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
@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_zakharchuk
@artem_zakharchuk 7 ай бұрын
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 7 ай бұрын
I will add it to the list of ideas.
@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.
@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
@antonanton1206
@antonanton1206 Жыл бұрын
Спасибо
@kasraaaa122
@kasraaaa122 Жыл бұрын
subscribed . thanks !
@MonsterlessonsAcademy
@MonsterlessonsAcademy Жыл бұрын
Welcome!
@waleedsharif618
@waleedsharif618 2 жыл бұрын
This is even easier than redux toolkit, can we use this instead of redux? I mean for work?
@MonsterlessonsAcademy
@MonsterlessonsAcademy 2 жыл бұрын
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н
@ВикторКудрин-ь5н Жыл бұрын
😂😂😂😂 English 😂😂😂😂😂😂 😅😅😅😅😅
@antonanton1206
@antonanton1206 Жыл бұрын
Don't laugh. He is the best for not English native speakers.❤
Mobx React - State Management Alternative to Redux
14:26
Monsterlessons Academy
Рет қаралды 10 М.
Маусымашар-2023 / Гала-концерт / АТУ қоштасу
1:27:35
Jaidarman OFFICIAL / JCI
Рет қаралды 390 М.
Counter-Strike 2 - Новый кс. Cтарый я
13:10
Marmok
Рет қаралды 2,8 МЛН
SLIDE #shortssprintbrasil
0:31
Natan por Aí
Рет қаралды 49 МЛН
Angular Projects Every Developer Wishes They Had in Their Portfolio
4:13:40
Monsterlessons Academy
Рет қаралды 7 М.
Jotai React - Better Global State Management
10:28
Monsterlessons Academy
Рет қаралды 25 М.
Zustand React State Management Course (Simple Redux Alternative)
1:15:24
freeCodeCamp.org
Рет қаралды 129 М.
Why Everyone Loves Zustand
29:27
Theo - t3․gg
Рет қаралды 116 М.
Zustand Tutorial for Beginners - The Only Course You Will Ever Need
1:10:21
Why I Moved from React Redux to Zustand and Why You Should Too!
19:24
First Look at Zustand in React: State Management Made Painless!
14:39
Josh tried coding
Рет қаралды 8 М.
Zustand with Context API - An Advanced Pattern
19:12
Cosden Solutions
Рет қаралды 15 М.
Подробно изучаем Zustand State Management (React, TypeScript)
1:17:10
Елена Литвинова — Искусство Веб-разработки 🛸
Рет қаралды 16 М.
State Managers Are Making Your Code Worse In React
13:33
Web Dev Simplified
Рет қаралды 211 М.
Маусымашар-2023 / Гала-концерт / АТУ қоштасу
1:27:35
Jaidarman OFFICIAL / JCI
Рет қаралды 390 М.