Why I Moved from React Redux to Zustand and Why You Should Too!

  Рет қаралды 107,558

CoderOne

CoderOne

Күн бұрын

So if you have been using Redux for many years now and you always felt that there is something off with the boilerplate code that you need to deal with as a Redux developer every time you need to add a new state variable or simply add an action to the reducer. Well, in this video we are going to cover why Redux is quite boring and hard and why maybe we should move to something easier and simpler like Zustand.
⭐ Timestamps ⭐
00:00 Intro
00:34 What is Zustand?
01:43 Zustand is better than Redux?
06:09 Creating a store using Zustand/Redux
10:33 Ecommerce Web App we are going to use
11:34 Redux-Toolkit Implementation
14:11 Zustand Implementation
17:48 Comparing it with Redux Core
🧭 Turn Design into React Code | From prototype to Full website in no time
• Turn Design into React...
🧭 Watch Tutorial on Designing the website on Figma
• I Design a onecolor We...
🧭 Watch Create a Modern React Login/Register Form with smooth Animations
• Create a Modern React ...
🧭 Debug React Apps Like a Pro | Master Debugging from Zero to Hero with Chrome DevTools
• Debug React Apps Like ...
🧭 Master React Like Pro w/ Redux, Typescript, and GraphQL | Beginner to Advanced in React
• Master React Like Pro ...
🧭 Learn Redux For Beginners | React Redux from Zero To Hero to build a real-world app
• Debug React Apps Like ...
🧭 Build Login/Register API Server w/ Authentication | JWT Express AUTH using Passport.JS and Sequelize
• Build Login/Register A...
🧭 Introduction to GraphQL with Apollo and React
• Introduction to GraphQ...
🐦 Follow me on Twitter: / ipenywis
💻 Github Profile: github.com/ipenywis
Made with 💗 by Coderone

Пікірлер: 180
@harag9
@harag9 6 ай бұрын
Being new to react, I spent about a week learning redux, then I watched a video about Zustand, but they was no comparison, then I found this. WOW thanks for doing this, really detailed and I'm surprised how much easier it was to follow your zustand code compared to redux. Thanks for the video.
@venicebeachsurfer
@venicebeachsurfer 2 жыл бұрын
I agree, Zustand is awesome. The same creator also created Valtio and Jotai, two other great libraries for state.
@abc_cba
@abc_cba 2 жыл бұрын
I really appreciate how you give us many options and tech updates. Thank You. Can you do a comparison of performance of Redux vs other state management tools side-by-side? It would be awesome to watch. Best wishes all the way from India 🇮🇳
@yahyasalimi3254
@yahyasalimi3254 2 жыл бұрын
I find redux toolkit very easy though. I will keep an eye on Zustand, right now as a beginner I would not waste my time jumping between libraries and frameworks. Maybe in the future when Zustand gets more popular and companies start recognizing it, I will consider learning it
@theblackunderflow1842
@theblackunderflow1842 2 жыл бұрын
same
@RyanKOnk
@RyanKOnk 2 жыл бұрын
Same
@zm12123
@zm12123 2 жыл бұрын
I love redux toolkit, i barely write any boilerplate anymore! I copy/paste basic structures and fill in a few details to get everything running smoothly
@aacv
@aacv 2 жыл бұрын
you do not need to learn zustand if you know redux. you know how to run, then of course you know how to walk.
@rachidb9624
@rachidb9624 Жыл бұрын
You need 5 minutes to learn it
@alroyfernandes4090
@alroyfernandes4090 Жыл бұрын
Great library, I do agree with everyone else that companies won't hire a just a zustand user. But that won't stop me from using it in my personal projects. You earned a new subscriber
@TannerBarcelos
@TannerBarcelos Жыл бұрын
I use redux at work and past projects. Great stuff but I’m ready to learn something new. Using it at work will keep me fresh but I think I’m gonna start using React Query and Zustand here on out for all my personal projects and use Redux Toolkit at work / RTK Query. If you’re a beginner, learn Redux. It’s the standard and it’ll get you a job. If you’re in industry or want to learn something way easier and that’s cleaner and less overhead to add new skills to your toolbox and make side projects, learn Zustand. It’s important to note everyone has opinions. Always let your job do the talking at first but outside of work, use what you want. In the end, so long as the USER can use the app and experience a seamless experience, that’s all that matters. The code can always be changed later.
@lord-of-the-shinobi-world
@lord-of-the-shinobi-world Жыл бұрын
So, what you're saying is, Redux is the basic. From there, move forward with other state management libraries
@TannerBarcelos
@TannerBarcelos Жыл бұрын
@@lord-of-the-shinobi-world redux is probably the most complex and feature rich but other state managers are probably better in 2023. React Query and Zustand are nice. But it’s also probable for many users that a global state manager isn’t even needed. Especially with the rise of server first web apps and nextjs, so much of your “state” can be server side and no longer require client side state. If you need it, reaching for something like Zustand or RQ are fine.
@rubenverster250
@rubenverster250 2 жыл бұрын
Listen man... If the project I've been onboarded to uses easy-peasy, I use easy-peasy... If the project I've been onboarded to uses contect, I use context... If the project I've been onboarded to uses RTK, I use RTK... You see what I'm getting at? If the project is fresh, use RTK. Redux is standard in the industry and RTK makes it very easy. Even Backend guys can work it :)
@hussainabbas1341
@hussainabbas1341 Жыл бұрын
Amazing, Thank you so much for clear this topic to us, your explanation is well prepared good job.
@HeyDan1983
@HeyDan1983 2 жыл бұрын
An Svelte-like store management, that's something we needed on React, thank you for the video.
@michaelangelomagat7824
@michaelangelomagat7824 Жыл бұрын
wow it blows my mind... I should try this zustand to my next project thank you for this video ❤
@gindrunk
@gindrunk 9 ай бұрын
I just did this to my personal projects 2 months ago and im loving zustand!
@sokacsavok
@sokacsavok 2 жыл бұрын
If you actually look at the two examples, it makes Redux look way more complicated. When, in reality it is basically the same thing and you can nearly make it as compact as the Zustand example. The Redux part also has types (interfaces), which the Zustand example omits. There is nothing in those examples about importing, exporting which you would have to do with Zustand as well if you want to use from multiple files. I also don't like when people create too many stores. I like to just create a tree of states, but only use one main store, it makes everything cleaner are much more simple. So yeah, not quite fair comparison.
@edwardroh89
@edwardroh89 Жыл бұрын
agreed, the example comparison is a bit unfair tbh. You can simplify it a lot. There is just not that much more compared to zustand. The advantage of redux is its maturity and popularity and that's a huge huge benefit when you consider how much more support you will get when searching
@hussainabbas1341
@hussainabbas1341 Жыл бұрын
I agree, but still Zustand is much simpler
@rohithn-76
@rohithn-76 3 ай бұрын
Zustand simple to implement reduced broiler plate code
@juanmamenendez
@juanmamenendez Жыл бұрын
A great tip is to create custom hooks that access and return to the corresponding store state and actions and then just call the custom hooks in the Components and never directly call the store.
@MuhammadFahreza
@MuhammadFahreza Жыл бұрын
Hi ! nice video. I was wondering on 17:35. We have fetchProducts inside useEffect ?. How will we comply to React 18 that encourage us to move away data fetching inside useEffect ? thanks !
@mukhammadsobirov1311
@mukhammadsobirov1311 2 жыл бұрын
Absolutely loved the video! Can you please share the source code of the video demo projects if they'republic repos?
@chess4964
@chess4964 2 жыл бұрын
Zustand is my first love coz it supports async calls just using async/await with no further config needed not like redux that you need thunk for that, but as software engineers we dont use what is easy, we use what brings us a job. Nevertheless, zustand is great for your personal projects
@devillspdr
@devillspdr 2 жыл бұрын
redux toolkit has rtk query, and all works seamlessly together. and redux dev tools is awesome
@chess4964
@chess4964 2 жыл бұрын
@@devillspdr dude that's the point... zustand dont need those shits to work. That's why others love zustand. But those simple state management is not industry's favorite hence the sentence "we dont use what is easy but what gives us a job".
@devillspdr
@devillspdr 2 жыл бұрын
@@chess4964I find redux toolkit very simple to use and I'm new to react
@thomasweigert731
@thomasweigert731 Жыл бұрын
I love, how you pronounce Zustand xD Its German and means nothing more than "State". If you wanna try: you pronounce it like "Tsu" - like in tsunami for the ZU, "sh" just for the S (dont ask why xD) , the AN is pronounced like the un in bun :Dand the D ist not like a D, more like a T ....like Tsushtunt or in german Zustand :)
@CoderOne
@CoderOne Жыл бұрын
Nice explanation! Now, I'm officially German ^^
@MikhailTatsky
@MikhailTatsky 2 жыл бұрын
I moved to MobX in 2019 and pretty happy.
@pranupranav6279
@pranupranav6279 Жыл бұрын
Awesome I use zustand in my project.
@ikarosouza
@ikarosouza 2 жыл бұрын
Redux is already a hell by its own, then you add saga to it and your mind explodes.
@TomsVeidemanis
@TomsVeidemanis 2 жыл бұрын
I'd say a bit too biased towards zustand :) yes it's simple.. but you don't need all the async thunks in redux -> use the builtin rtk query and you are golden
@okonkwo.ify18
@okonkwo.ify18 2 жыл бұрын
React redux is now easy with when you use it with @redux-toolkit
@ronin9432
@ronin9432 2 жыл бұрын
"Zustand"is the German word for "State" (if you want to know the pronunciation ;-) -then this is what you need to look for)
@minciNashu
@minciNashu 2 жыл бұрын
"Zoo stand". Lol
@nakshatrasingh6933
@nakshatrasingh6933 Жыл бұрын
Heyy, great tutorial, can you share the code for the zustand implementation? Thanks
@trideepsardar2266
@trideepsardar2266 2 жыл бұрын
I also like mobx for state management,
@kamalkamals
@kamalkamals Жыл бұрын
And after x days move from zustand to another package, so my question is on react why not to make creation state/store simple like svelte or solidjs??
@jomariiringan8724
@jomariiringan8724 2 жыл бұрын
Looks promising but would it be better for beginners to use Context instead of zustand? Looking forward for companies that allows to use this tho & insight from other devs. Right now, I'm still going to use redux
@antoniopantano4255
@antoniopantano4255 2 жыл бұрын
Context is not meant to be a state management API
@dronie1600
@dronie1600 3 ай бұрын
just a hint to demystify the name: Zustand, der (male genus) means state in German, pronounce it like 'super' beginning with a T and like 'stunt' with sh instead of just an s. Tsuuu-sh-tund if that makes sense
@baseljuma158
@baseljuma158 2 жыл бұрын
When I start using React I found that Redux is so complicated and I still find it hard even with redux toolkit ... It seems that Zustand might be the new tool that I will use for state management. It seems easy to use and has less code to write, Thank you for the video but I think it is a little bit long
@ibrahimhafez7750
@ibrahimhafez7750 2 жыл бұрын
Redux toolkit is hard?
@RyanKOnk
@RyanKOnk 2 жыл бұрын
@@ibrahimhafez7750 not it's not unless you find learning a few concepts hard
@baseljuma158
@baseljuma158 2 жыл бұрын
@@ibrahimhafez7750 I can agree it is not that much hard with toolkit but still need so many things to do
@akovalevv
@akovalevv 2 жыл бұрын
@@ibrahimhafez7750 some people start study react without understand base js and logic.
@dendysaptoadi9652
@dendysaptoadi9652 2 жыл бұрын
Thats true, Zustand easy to use
@phryneas
@phryneas Жыл бұрын
12:30 actually, Redux-Thunk is part of Redux Toolkit per default. There is no reason to write extra code here to override the default middleware (which includes thunk) with thunk.
@archmad
@archmad 2 жыл бұрын
for data state management, you better off using react-query for simple ui state management, you better off using react-tracked there's no place in using redux at all
@mateh3273
@mateh3273 Жыл бұрын
My question would be, there's also a library such as react-query or apollo-graphql. Therefore, what's the point of adding the data to the store such as redux or zustand, could u please provide me another usecase rather than fetching data?
@shawnxiong2011
@shawnxiong2011 2 жыл бұрын
Personallly, for normal state management, I felt Redux and Redux Toolkit APi could be simpler, as author pointed out, too much just too much boiler template (reminds me Angular). Surely, when building large project or complex store interraction or dependency, you need the library to have the flexibility for advanced use cases.
@blasttrash
@blasttrash Жыл бұрын
just curious what advanced use cases does redux have that cannot be done in zustand?
@muneugi3900
@muneugi3900 Жыл бұрын
How do you go about authorization in a login using zustand?
@optix212
@optix212 Жыл бұрын
You showed redux in TS, but then zustand in JS. I normally love your videos but please try to keep the language consistent. Of course Redux in TS is going to have more boiler plate.
@user-ve5tt2bz3d
@user-ve5tt2bz3d Жыл бұрын
How about RTK Query? It is much less code than in redux and maybe like in zustand.
@MuhammadFahreza
@MuhammadFahreza Жыл бұрын
how to implement it with react query?
@DuyTran-ss4lu
@DuyTran-ss4lu 2 жыл бұрын
Awesome
@charuwaka1
@charuwaka1 4 ай бұрын
Zustand + React Query = Awesome
@dealloc
@dealloc 2 жыл бұрын
RTK Toolkit and Zustand isn't really comparable. RTK Toolkit is a collection of tools that provides you tight integration with everything from state management, async queries and mutations with caching and prefetching, API definitions (RTK Query), side-effects and more. Zustand is just state management with some side-effect handling. The rest relies on React hooks like useEffect, which makes it easy to end up shooting yourself in the foot-esp. for async operations. Now this is not to say that Zustand isn't great. It certainly is a nice API for smaller apps and scales fine, and I personally use it for most of my projects. But if you need to integrate anything with Zustand, like React Query, to handle async queries and mutations, you end up writing needing to write and maintain your own glue code. And that is without TypeScript and type inference. It becomes more boilerplate than RTK for a lot of things. Zustand is great for state management, RTK is great if you like to have more out of the box that is tightly integrated and need good interop with TypeScript for those things.
@dealloc
@dealloc 2 жыл бұрын
Additionally the example in this video is a poor representation of RTK at best. It mostly uses Redux and not any of the toolkit APIs that offer much simpler ways to manage state, async side-effects and API requests. RTK Query would have been a much better fit and provides everything you need to cache, invalidate and implement optimistic updates for a smoother UX.
@saeedatenzi
@saeedatenzi Жыл бұрын
Jack of all trades, master of none
@ionutsandu5913
@ionutsandu5913 5 ай бұрын
@@saeedatenzi But still better than mastering one. You clearly didn't understand the saying.
@MattBakken10
@MattBakken10 8 ай бұрын
You don't need to do ...state inside slices. You can just modify state directly in RTK.
@user-mo2po5xo4c
@user-mo2po5xo4c 5 ай бұрын
With RTK Query everything becomes more equal, since now we don't have so much boilerplate code and thinking in redux is a whole another thing now (working with async actions, i mean)
@viallymboma9874
@viallymboma9874 2 жыл бұрын
new favorite in town
@rehan-6377
@rehan-6377 9 ай бұрын
Thanks
@rahuldotel5983
@rahuldotel5983 2 жыл бұрын
Redux vs react context , redux vs recoil , redux vs zustand - redux always winner
@arazmammadov9276
@arazmammadov9276 2 жыл бұрын
Can you explain it in more details please? What makes Redux to be always winner?
@rahuldotel5983
@rahuldotel5983 2 жыл бұрын
@@arazmammadov9276 redux is always structured even if your project size is large , it is easy to test , almost half of the react apps use redux , huge ecosystem , sate are read only no unnecessary render ..
@rubenverster250
@rubenverster250 2 жыл бұрын
@@arazmammadov9276 Redux is the standard in the industry :) Rather take a bit more time laying a big foundation so that you can scale up to a big skyscraper RTK is like cheatcodes for new devs :D
@MyPhuckDub
@MyPhuckDub Жыл бұрын
To know, zustand is pronounced"tsooshtand" and means "state" in german. pmndrs is short for poimandres.
@rubelhossain_webdeveloper
@rubelhossain_webdeveloper 2 жыл бұрын
thanks
@codeWimran
@codeWimran Жыл бұрын
Please can you give us a link to this ecommerce repository?
@bilalullahkhan5517
@bilalullahkhan5517 Жыл бұрын
i have moved to zustand for about 3 months, and believe me, it is really great and amazing library, i prefer zustand over redux
@jggabayno
@jggabayno 2 жыл бұрын
Zustand is cool, but RTK have full support to nextjs that's why im still using it with typescript :)
@anazi
@anazi 5 ай бұрын
Zustand is the best honestly ! I couldnt find an issue with it. Even in production Apps.
@butbutmybutt
@butbutmybutt 11 ай бұрын
Redux events inform all stores. If u have many places inside ur app where u update ur cart u can always add functionality to ur stores later. U dont have to update ur components.
@eleah2665
@eleah2665 Жыл бұрын
I just noticed this. Is the code available somewhere? Thanks.
@Nick-tv5pu
@Nick-tv5pu Жыл бұрын
Oh boy yet another state management library... just what we needed
@neil_from_future
@neil_from_future 2 жыл бұрын
well, in the concept of a beginner I would learn redux toolkit because my team company uses it. Zustand seem more light bright for my other hand project.
@timschulz_de
@timschulz_de 6 ай бұрын
I case you didn't know: "Zustand" is actually the translation of "state" in German. So the name makes a lot of sens :D
@itsaaron6423
@itsaaron6423 2 жыл бұрын
I see something like tis and blood boils . it takes time to lean framework and something comes along and says everyone should jump in.
@DevX_0o0
@DevX_0o0 8 ай бұрын
Isn’t ContextAPI + hooks that enough?
@inqvisitor3722
@inqvisitor3722 2 жыл бұрын
mobx with react-query for cache is better and simpler.
@everythingisfine9988
@everythingisfine9988 2 жыл бұрын
Simple like Pinia 💪
@adimardev1550
@adimardev1550 Жыл бұрын
i hate redux even before i started learning it. even after i became good at it, it's just still not the right way to manage state. i switch to zustand 1 year ago and it was the end of state management war. but i'm forcing my selft to keep redux on my back just because it's on the job while zustand is new. but as for my projects, i use zustand with react-query togather works perfectly for many scenarios.
@Nochdarus
@Nochdarus 2 жыл бұрын
"Zustand" is a German word for state, and is pronounced /ˈt͡suːˌʃtant/
@butykar
@butykar Жыл бұрын
"Süßtend" would be written in german, what CoderOne says. :) but the english version isn't bad, just sounds funny. Good video btw!
@dontqsy5101
@dontqsy5101 2 жыл бұрын
I prefer Jotai insted Zustand but both are great
@bigruan123
@bigruan123 2 жыл бұрын
Would anyone consider reapex? It’s built with redux, and has almost all the advantages of redux toolkit, zustand, jotai, etc. Even a lot simpler than redux toolkit. Since it’s built with redux, it compatible with redux ecosystem.
@joelhager3106
@joelhager3106 2 жыл бұрын
Zustand is AMAZING
@Randomguy48279xyz
@Randomguy48279xyz 2 жыл бұрын
👍
@EliasGuderian
@EliasGuderian Жыл бұрын
By the way, for those that don't know Zustand is German for state.
@MuhammadIqbal-fh8em
@MuhammadIqbal-fh8em Жыл бұрын
in!
@ahmedhassan_saver
@ahmedhassan_saver 2 жыл бұрын
Can i use the 2 of them in the same proj?
@CoderOne
@CoderOne 2 жыл бұрын
Sure, but I don't think it would be a good idea!
@ilyasayusuf5447
@ilyasayusuf5447 Жыл бұрын
i absolutely love redux, but in some project that i work before. they used to many redux, like a lot lot of redux even for small thing that you can do in useState. because of this the app feel so laggy and bloated.
@preslavgetov1330
@preslavgetov1330 Жыл бұрын
Hey people, anyone ever wrote async thunks with firebase methods?
@yathink2406
@yathink2406 2 жыл бұрын
I think you probably look into svelte.
@okonkwo.ify18
@okonkwo.ify18 2 жыл бұрын
Hahaha. The context API and the useReducer hook is my favorite, but react redux comes second. No other API beats them
@asadali1268
@asadali1268 2 жыл бұрын
I want to make my own state management librarie. Any js developer want to join.
@jpbz412b
@jpbz412b 2 жыл бұрын
Redux thunks are just functions that return functions. You don't need to use createAsyncThunk and all that crap. And redux toolkit already have thunks built in you don't need to configure the Middleware again. Actually you just removed all rtk Middlewares and replaced with only redux thunk. At real world projects redux wins by defining a clearer pattern to develop the project. But, zustand is crazy simple I'll give it a chance
@antoniopantano4255
@antoniopantano4255 2 жыл бұрын
Promises are always composed of three states. Pending, Rejected, Fulfilled. I still see people omitting the first two all the time and this is really a bad practice. In your example you are not handling at all things like loading, error, error message and so on (you just set loading: false but i don't see where you set it to true). There's no guarantee you api call will always return a valid result. You say nothing about memoization. Redux/Toolkit ships with createSelector to avoid unnecessary computation when part of the state is not changed. Is that supported in Zustand out of the box?. How can one avoid heavy computation and avoid re-rendering the component even if the state has not changed. Comparison are not only about shorten code. Please provide more info about other important features if you want to make a valid comparison.
@nizomsidiq3
@nizomsidiq3 Жыл бұрын
yeah memoization is supported out of the box and by default it is using strict equal (===) comparison, we can also change the comparator, for example we can add shallow comparator (can import from zustand/middleare) to return an object or array in selector
@softwaveindia
@softwaveindia Жыл бұрын
@CoderOne has not managed loading and rejected but it does not seem that difficult , to achieve that all he has to do is wrap the api call in a try catch block For error state in catch block he can set error, For loading state before the api call he has to set loading to true (in try block)
@chrissiefernando4218
@chrissiefernando4218 Жыл бұрын
Also most people fail to cancel the pending api’s if they navigate from one page to other.
@l3vi965
@l3vi965 2 жыл бұрын
its not sustend, its ZUSTAND like tsu stand but stand is prounced german
@xxXAsuraXxx
@xxXAsuraXxx Жыл бұрын
RTK is the future
@adamtak3128
@adamtak3128 2 жыл бұрын
react-query + zustand
@jayasurian123
@jayasurian123 Жыл бұрын
Every promotor of any library forget to tell something. How to write tests?! For me thats the pain point for choosing any library. How easily I could implement tests! Why we omit testing part when we talk about this is good and that is not??!! Are we not writing tests anymore?
@jamalsheriff1928
@jamalsheriff1928 2 жыл бұрын
ok which company is going to higher me for using zustand right now ....
@rubenverster250
@rubenverster250 2 жыл бұрын
exactly :)
@isaidwithcheese8926
@isaidwithcheese8926 2 жыл бұрын
Zero companies
@kenjimiwa3739
@kenjimiwa3739 Жыл бұрын
you should be able to pick it up quickly. besides, I can't think of any company that says "oh, you haven't used Zustand before? sorry we can't hire you."
@simonpettersson6788
@simonpettersson6788 Жыл бұрын
If you're having to learn specific libraries to score jobs I'm afraid your problem is not knowing specific libraries my friend.
@juanrolon1729
@juanrolon1729 Жыл бұрын
an elevator or forklift manufacturer company should higher you
@basefocus8969
@basefocus8969 4 ай бұрын
I just have ptsd from redux!
@butterfly7562
@butterfly7562 2 жыл бұрын
and jotai
@rahuldotel5983
@rahuldotel5983 Жыл бұрын
update ... zustand is really awesome
@yakmoon
@yakmoon Жыл бұрын
Those who get really annoyed by his voice and how he talks, turn on the cc & mute the video. unfortunately that's the only way. and Yes! I know!, my ear also bleeds when I listen to him talking.
@pezhmanvapsin
@pezhmanvapsin Жыл бұрын
not funny guys, I have a friend who talks like that, he is not doing it on purpose. this is the way they talk
@yakmoon
@yakmoon Жыл бұрын
@@pezhmanvapsin I don't believe you. I tried talking like him, I started talking to my parents the way talks, and they thought I was stupid, and trying to mock them.
@nitsanbh
@nitsanbh Жыл бұрын
0:38 please zoom in, some of us watch on mobile :)
@marlo3898
@marlo3898 2 жыл бұрын
Fun fact Zustand means State in german
@AsifSaifuddinAuvipy
@AsifSaifuddinAuvipy 2 жыл бұрын
redux-query? MST?
@0xedb
@0xedb 2 жыл бұрын
Then moved from zustand to Valtio, which is far simpler
@codernerd7076
@codernerd7076 2 жыл бұрын
Redux got mayor history and proven record its easy to test and works! Its not really that much of extra code... tired hearing that over and over. It's stable and works... and Zustand is well a new player that didn't earn my trust yet to use it for anything other than personal projects.
@bharatmishra250
@bharatmishra250 2 жыл бұрын
Well Redux never die...
@The_SSS
@The_SSS 2 жыл бұрын
I don’t unZustand
@tonytran07
@tonytran07 Жыл бұрын
No one is saying redux is difficult. But I will say it is messy as hell. I complained about this since I first saw a sample code of it. It's stupid. All of your code that you're using Redux on???? I can cut that entire code by over 50%. Less code to maintain, easier to read, and superior by far in every way. Want middleware? Zustand got it for you too. Name me one thing Redux has over Zustand The only one people provided me so far is: "It's been around longer, familiarity where more people recognize it, and time-travel debugging" Honestly... I'll gladly give up those to cut off 50% of my code and keeping the entire project clean.
@philbrk8750
@philbrk8750 Жыл бұрын
funfact: "Zustand" is german for "State" ...so you need to pronounce the "Z" with a bit more aggression :D
@mlnima
@mlnima Жыл бұрын
is not Zustand its TsuShtand
@martapfahl940
@martapfahl940 Жыл бұрын
Fun Fact, I am from Germany and "Zustand" is actual German and literally means "State", LOL =D
@JEsterCW
@JEsterCW 2 жыл бұрын
First time when I saw Redux i was like "bruv...wtf is this crap?" I said "jesus so complex and difficult tool for a begginner". Redux has so much boilerplate code thats totally useless and not really needed for the goal of state managment, redux is too complex(also not needed), the structure of redux is also so confusing. When I needed a state managment for my first time in my entire life i was like "im not gonna use redux, this is another crap used in this industry that shouldnt even exist" then i looked up some state managment tools and saw zustand and i felt in love with this tool. I am not an Redux hater or sum, but i just hate tools in this industry like php etc that shouldnt exist a long time ago, same for jqueary etc, i cant wait when redux will die, zustand is doing so well in large apps and its scaling pretty well if u know what ure doing i feel pain in my ass tho cause im looking for a job atm as a front and i know that i will have to use redux on the front end if im gonna be hired anywhere, and im about to cry about this fact cause redux shouldnt exist anymore. I love the way of Zustand, its like hook based, pretty lovely, simple, really powerful, pretty readable when u see the code etc, not confusing at all just clearly lovely tool that makes ur work easier and comfortable as heck ;p
@ahmedn76841
@ahmedn76841 2 жыл бұрын
The major problem is that most of companies require you to have high level knowledge of redux.
@danielwiederman8161
@danielwiederman8161 2 жыл бұрын
Yeah good luck with production application build bud, share with us later how easy was your scaling and how it managed to highly perform in rush hour ;) If you want to be professional react developer you should master redux, redux’s ecosystem and context API. The main reason redux won’t be replaced soon in the professional industry is because it is battle tested and from my own experience have the right tools to handle a massive state handling and manipulation when your client never close the browser and accumulate massive data over time.
@JEsterCW
@JEsterCW Жыл бұрын
@@ahmedn76841 I don't say that the industry don't requires the knowledge of redux.
@dannydevs
@dannydevs 2 жыл бұрын
Why I moved from React to Vue and why you should too!
@dannydevs
@dannydevs 2 жыл бұрын
Oops forgot to mention first-party state management Pinia, which is ridiculously simple, you can learn it in an hour or two
@rameetmashta
@rameetmashta 2 жыл бұрын
I ain't moving from JavaScript
@mr.nice_
@mr.nice_ 2 жыл бұрын
For server state React Query is the king. For client state Redux, Zustand..
@clipesdaora
@clipesdaora 2 жыл бұрын
you are using the redux toolkit wrong.
React Query Is (Still) Essential - My Favorite React Library
11:04
Theo - t3․gg
Рет қаралды 143 М.
I Tried 5 Redux Alternatives and Here is the Best one
16:48
CoderOne
Рет қаралды 20 М.
THEY WANTED TO TAKE ALL HIS GOODIES 🍫🥤🍟😂
00:17
OKUNJATA
Рет қаралды 6 МЛН
The child was abused by the clown#Short #Officer Rabbit #angel
00:55
兔子警官
Рет қаралды 15 МЛН
Khóa ly biệt
01:00
Đào Nguyễn Ánh - Hữu Hưng
Рет қаралды 20 МЛН
Should you still be using Redux in 2023?
7:35
Matt Pocock
Рет қаралды 51 М.
State Managers Are Making Your Code Worse In React
13:33
Web Dev Simplified
Рет қаралды 160 М.
This is the Only Right Way to Write React clean-code - SOLID
18:23
You are loading Images wrong! Use this instead 😍
14:41
CoderOne
Рет қаралды 206 М.
Почему я выбираю Zustand вместо Redux Toolkit?
24:53
PurpleSchool | Anton Larichev
Рет қаралды 14 М.
Turning bad React code into senior React code
13:10
Cosden Solutions
Рет қаралды 86 М.
Redux - Complete Tutorial (with Redux Toolkit)
37:01
Cosden Solutions
Рет қаралды 163 М.
Stop Doing this as a React Developer
12:27
CoderOne
Рет қаралды 160 М.
Redux Toolkit для управления состоянием в React-приложении
1:00:09
Михаил Непомнящий
Рет қаралды 193 М.