Zustand Beginner Tutorial - Learn React State Management With Zustand

  Рет қаралды 34,762

PedroTech

PedroTech

Күн бұрын

In this video I will be teaching one of my favorite state management solutions in react, ZUSTAND!!!
🚀 Learn ReactJS By Building 6 Projects: codedamn.com/l...
🐙 GraphQL Course: codedamn.com/l...
Social
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Website: pedrotech.co
Linkedin: / machadop1407
Instagram: / pedro.fmachado_
Github: github.com/mac...
Business Email: pedro@pedrotech.co
🌟 Gear / Hardware I Use and Recommend 🌟
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
💻 amzn.to/42kqFuM 💻 Monitor
🖱️amzn.to/3C0ZhHb 🖱️ Mouse
📷 amzn.to/3OHJvbM 📷 My Camera
🎤 amzn.to/3oxSthj 🎤 My Microphone
⌨️ amzn.to/3oFPpj1 ⌨️ My Microphone
⚡ amzn.to/3MYMnzM ⚡ LED Lights In the Background
Tags:
ReactJS Tutorial
ReactJS and MySQL
NodeJS Tutorial
API Tutorial
..........
♬ MUSIC ♬
Artist: tubebackr
Track: Chill With Me
@tubebackr
hypeddit.com/tubebackr/chillwithme-1
.............
#reactjs #coding

Пікірлер: 88
@creamCheese89
@creamCheese89 11 ай бұрын
you have no idea how i become a react js developer in quick, clean and precise, all the video that you made taught me like a kinder garten, i really love how you helped me grow in programming!
@EducationSimplified
@EducationSimplified 6 күн бұрын
Man I'm Indian. My mother tongue is Hindi. But still I understand you like you are teaching in my very local language. Like a friend who knows me very well. Who knows, how I will grasp the concept. Thank you Man. Thanks a lot.
@PedroTechnologies
@PedroTechnologies 5 күн бұрын
Glad to hear man!
@Kira13555
@Kira13555 10 ай бұрын
I love you and your tutorials so much man, please keep up the great work -a wannabe frontend dev
@codewithAbdulMumin
@codewithAbdulMumin 8 ай бұрын
this is the best zustand video ever made anywhere. simple and well explained thank you.
@PedroTechnologies
@PedroTechnologies 8 ай бұрын
Glad you enjoyed it!
@bobdaawid2218
@bobdaawid2218 11 ай бұрын
I think i really love zustand already, i find props usage really confusing but watching this makes everything easier. would appreciate a complete mern stack project using zustand.
@danimunf
@danimunf 3 ай бұрын
I'm having an interview in the next days, and the requirement state that they use Zustand, i never heard about it before, now i know. I learn a lot from you. 🎉
@matheusgobetti1436
@matheusgobetti1436 9 ай бұрын
Cara, teu ingles é perfeito e eu entendo tudo, a maioria dos canais gringos falam com tanto sotaque que é dificil de entender... Obrigado por usar palavras simples!!
@serhatyavas6242
@serhatyavas6242 4 ай бұрын
you're are great teacher you have the ability to understand how people can understand coding
@ahmaddawood9691
@ahmaddawood9691 7 ай бұрын
Excellent Job ..Thanks for saving me from "Context" junk,,watched your video and apply it instantly to my project and Boom :) :)
@Veneris96
@Veneris96 6 ай бұрын
This video would've reeeally helped me a lot last year during my final exam lmao Better late than never I guess, ty for the tutorial Pedro; good stuff. ❤
@jamesbest2221
@jamesbest2221 11 ай бұрын
Very interested in Zustand! Thank you!!
@Лаурахит
@Лаурахит 10 ай бұрын
It would be interesting to look at the use of multiple stores, whether zustand has something like combineReducers and how one could track the state of change of any value. Thank you for the excellent and educational videos, they educate well
@k2an
@k2an 11 ай бұрын
nice nice nice !!!!! bravo! awesome sharing, you differ from others.. not just a counter sample. keep going like this!
@PedroTechnologies
@PedroTechnologies 11 ай бұрын
Thank you!! I appreciate that :)
@ABHISHEK_RANJAN01
@ABHISHEK_RANJAN01 5 ай бұрын
Thank you for such great explanation😇, and,it would be great if you could add some more videos on zustand....
@aNDy-qh1em
@aNDy-qh1em 5 ай бұрын
Bravo, great tutorial, thanks bro! Waiting for more - you have great explanatary skills - largley more clear than multiple explanations on my native language! Btw, in german it seems to sound like "tsoushtand"
@tamilalagarsamy3857
@tamilalagarsamy3857 11 ай бұрын
Awesome to explain. Please make more videos on Zustand.
@parthivsolanki21
@parthivsolanki21 11 ай бұрын
As Always, Great Explained 🔥
@FirasMohamed96
@FirasMohamed96 11 ай бұрын
Zustand is not one of the best RSM, IT IS LITERALLY THE BEST RSM HAS EVER MADE 🔥🔥🔥
@DallBelloCamila
@DallBelloCamila 11 ай бұрын
So nice!!! Thank you for the video that was really helpful!
@shedrachugochukwu6245
@shedrachugochukwu6245 10 ай бұрын
Thanks allot, Pedro. This matters much
@zaidmaraqa5360
@zaidmaraqa5360 10 ай бұрын
thank you pedro, any chance you can make a couple more advanced zuustand tutorials
@tonyg_nerd
@tonyg_nerd 4 ай бұрын
For those comparing with Context, the video linked here describes issues with Context, but more importantly among the pro-Zustand comments are notes that Zustand and Context are two different things. Before commenting that one or the other is "better", understand that they are not the same and both should be in the toolkit, to be used or not in specific scenarios. Thanks for the vid, Pedro! kzbin.info/www/bejne/fKGshZSOerR9kJIsi=CR3bbbM6JfzJJg5k
@MANUMANU-jq6pb
@MANUMANU-jq6pb 4 ай бұрын
Awesome video bro!!! THANKS !!!
@royarnab
@royarnab 8 ай бұрын
immer seems to be a useful thing, thanks
@mohammadravand4351
@mohammadravand4351 10 ай бұрын
thank you man, great work💖
@codewithenima
@codewithenima 9 ай бұрын
Thanks for u tutorial, I will just add small explanation for selectors patterns it’s prevent to re-rendering components
@MohammedAlziko
@MohammedAlziko 2 ай бұрын
woow You make it so simple,😘😘
@PedroTechnologies
@PedroTechnologies 2 ай бұрын
Thanks a lot 😊
@Goku-zu3rk
@Goku-zu3rk 10 ай бұрын
Can you make a video on testing libaries and what tests you would cover? i spend a lot of time with that and most people dont seem to cover this topic much on the internet.
@okkkk88612
@okkkk88612 11 ай бұрын
best zustand tutorial thumbs p
@jokerdz1711
@jokerdz1711 3 ай бұрын
think you bro your fan from algearia
@JimohSegun
@JimohSegun 8 ай бұрын
Nice tutorial, I'll like to know which theme youre using
@mynameisnotshane6501
@mynameisnotshane6501 3 ай бұрын
Thank god someone working without ts
@MohammedAlziko
@MohammedAlziko 2 ай бұрын
🤣🤣🤣
@TemmyCodingLifestyle
@TemmyCodingLifestyle 10 ай бұрын
I love this. Can you make a project using React Query and Zustand. A CRUD app
@farzan2799
@farzan2799 7 ай бұрын
thanks 🙏 It was really helpful ✌
@rambsdev
@rambsdev 11 ай бұрын
Auto like Pedro. Like to ask if you use a extension about indenting the code and back it to one liner.. Thanks
@william_phyo
@william_phyo 5 ай бұрын
Thank you.
@QuanNguyenViet-zt6zb
@QuanNguyenViet-zt6zb 9 ай бұрын
How to manage status from api? For example, Cart.
@somitmeshram1238
@somitmeshram1238 10 ай бұрын
Can you please make NEXT JS Course the same way you made for react
@pianoworld_1
@pianoworld_1 7 ай бұрын
hence you proved developers spend 2 hours to make the work simple that takes 2 mintues . by the way awesome tutorial
@victorhenriquecollasanta4740
@victorhenriquecollasanta4740 11 ай бұрын
can we populate the initial states from the store with data provenients from the backend? API calls or Serveractions
@fluxsiarski
@fluxsiarski 7 ай бұрын
Thanks for amazing lesson Pedro, Pedro, Pedro, Pedro, Pè Praticamente il meglio di Santa Fè Pedro, Pedro, Pedro, Pedro, Pè Fidati di me Pedro, Pedro, Pedro, Pedro, Pè Praticamente il meglio di Santa Fè Pedro, Pedro, Pedro, Pedro, Pè Fidati di me Altro che ragazzino, che perbenino Sapeva molte cose più di me Mi ha portato tante volte a veder le stelle Ma non ho visto niente di Santa Fè
@manu-my3fv
@manu-my3fv 4 ай бұрын
Thanks
@hong18s
@hong18s 8 ай бұрын
Good tutorial for beginner. I have a question. does it still need to use the select pattern? we can use like this const { data, setData } = useStore();
@returncode0000
@returncode0000 3 ай бұрын
awesome 👍🏻
@hussainbhagat8855
@hussainbhagat8855 4 ай бұрын
I did not understand the selector part that you had in the end. Can we not simply call the states and functions just by simply destructuring the store hook function? What am I missing here?
@lokeshkavisth
@lokeshkavisth 11 ай бұрын
Immer is very handy 😮
@sadakvali8930
@sadakvali8930 5 ай бұрын
why don't we use immer as a middleware instead of using "produce" from immer?
@PushVOD
@PushVOD 5 ай бұрын
I think destructing your state is bad because it forces everything to rerender when anything in the state changes instead of just items you need. but great tutorial everything is amazing
@abirkolin4702
@abirkolin4702 9 ай бұрын
thanks a lot!
@techwithrashid4946
@techwithrashid4946 11 ай бұрын
Hey which software are you using for screen recording?
@PedroTechnologies
@PedroTechnologies 11 ай бұрын
I just use quicktime player, OBS screws up my computer for some reason
@speedster784
@speedster784 11 ай бұрын
Have you ever worked with fabric js?
@PedroTechnologies
@PedroTechnologies 11 ай бұрын
No unfortunately :/
@soniagrant570
@soniagrant570 9 ай бұрын
thanks, do you have a link to code repo?
@Klklpia
@Klklpia 11 ай бұрын
Awesome 😎😎😎
@bryandelacruz9066
@bryandelacruz9066 9 ай бұрын
Hi, may I know where is the full code for this project?
@arghyadutta6604
@arghyadutta6604 8 ай бұрын
Where is the repository for this tutorial?
@newbiedevtons
@newbiedevtons 9 ай бұрын
Can I combine zustand with react query for api fetching in react?
@ArhamAli-h1p
@ArhamAli-h1p 6 ай бұрын
Have u tried hows your experience ?
@AsishSharma-gi8tb
@AsishSharma-gi8tb 7 ай бұрын
Can you please provide us the GitHub repo ?
@gaming_zen_99
@gaming_zen_99 11 ай бұрын
Cookies are the best state management tool. Change my mind.
@PedroTechnologies
@PedroTechnologies 11 ай бұрын
But changes in the cookie value won't trigger a re-render in a react component 🤔
@gaming_zen_99
@gaming_zen_99 11 ай бұрын
@@PedroTechnologiesI am facing this issue. I am trying to toggle dark/light mode using cookies. But it works on initial page load but not later on cuz of no re-render.
@gaming_zen_99
@gaming_zen_99 11 ай бұрын
Can you make a video about how to toggle theme in server side rendering
@PedroTechnologies
@PedroTechnologies 11 ай бұрын
@@gaming_zen_99 yeah, this is a good use case for states. When the value of a react state changes, it forces the rerender of the component displaying it. If you want to toggle something that will be used in many different components, like a theme, i recommend creating a ThemeContext with the context api and manage ur states like that. There are a bunch of videos online on the topic :)
@gaming_zen_99
@gaming_zen_99 11 ай бұрын
@@PedroTechnologiesThanks bro! I am aware of that, just trying to see if I can do it with only cookies since localstorage is useless now cuz of ssr.
@usehook
@usehook 7 ай бұрын
what is u vscode theme
@hemitclassroom
@hemitclassroom 5 ай бұрын
dracula i think
@victorhenriquecollasanta4740
@victorhenriquecollasanta4740 11 ай бұрын
perfect, fuck redux!
@henry_ornellas
@henry_ornellas 10 ай бұрын
carai ingles fino do fino
@rbnzdave
@rbnzdave 4 ай бұрын
Ok so when this doesnt work for you, change your zustand version to 4, as 5 doesnt work. That'll be a problem for future me to deal with :D
@rbnzdave
@rbnzdave 4 ай бұрын
side note, `npm install zustand` will install the latest rc at the time of writing, which, when i have bounced forward and back ( `npm install zustand@4` vs `npm install zustand` ) DOSENT work with the code shown. Mystery solved, the world is now sane again, my hair will regrow.
@tonyg_nerd
@tonyg_nerd 4 ай бұрын
​@@rbnzdaveSo to be clear, v5 doesn't work, v4 doesn't work, and the RC doesn't work, but mystery solved! 😂
@user-hh3hv5ei8w
@user-hh3hv5ei8w 10 ай бұрын
Zustand is literally the German translation for "state", i thought KZbin half translated the video title lmao
@ragtop63
@ragtop63 4 ай бұрын
Honestly, there really isn't much in here that can't be accomplished with well designed Context providers. Especially if the main goal is to move away from prop drilling. Plus, using context has the added benefit of being worked with using regular JavaScript. No need to learn how to use library methods and their associated syntax.
@arzooqadri8805
@arzooqadri8805 11 ай бұрын
earlyyyyy
@asdfasdfuhf
@asdfasdfuhf 9 ай бұрын
Downvoting because you dont use typescript
@kushalmondal618
@kushalmondal618 9 ай бұрын
TS should be default if any JS family work is done After 2021...
@tonyg_nerd
@tonyg_nerd 4 ай бұрын
Not fair to downvote a tutorial that is focused on a different topic. I agree that TS is better but in a tut it complicates the material unnecessarily, especially for those still getting a grip on basic JS plus React. Downvoting your lack of experience and empathy. 🤨
Zustand - Complete Tutorial
19:27
Cosden Solutions
Рет қаралды 122 М.
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
React State Management with Zustand & TypeScript
1:04:35
Anson the Developer
Рет қаралды 7 М.
React Hooks Course - All React Hooks Explained
1:26:21
PedroTech
Рет қаралды 1,1 МЛН
Learn React In 30 Minutes
27:16
Web Dev Simplified
Рет қаралды 1,3 МЛН
State Managers Are Making Your Code Worse In React
13:33
Web Dev Simplified
Рет қаралды 219 М.
TanStack Query - How to become a React Query God
28:56
Austin Davis
Рет қаралды 31 М.
Why Everyone Loves Zustand
29:27
Theo - t3․gg
Рет қаралды 122 М.
All The JavaScript You Need To Know For React
28:00
PedroTech
Рет қаралды 695 М.
Why I Moved from React Redux to Zustand and Why You Should Too!
19:24
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН