Zustand Tutorial for Beginners - The Only Course You Will Ever Need

Поделиться
HTML-код
  • Опубликовано: 17 янв 2025

Комментарии • 129

  • @codegenix
    @codegenix  8 месяцев назад +6

    What tutorial do you want to see next?

  • @FatihOzkr
    @FatihOzkr 4 месяца назад +5

    The most comprehensive Zustand tutorial on RUclips. Thank you brother for taking this tutorial that deep and understandable.

    • @codegenix
      @codegenix  4 месяца назад +1

      You cannot imagine how much happy I am now. Thanks for your amazing feedback

  • @codingjogo
    @codingjogo 6 месяцев назад +11

    I'm begginner in Zustand if I don't read docs and do some little things with it I will never understand this. Your explanation is perfect for people who knows the basics

    • @codingjogo
      @codingjogo 6 месяцев назад +2

      Btw, your video perfectly explain Zustand, thanks a lot!

    • @codegenix
      @codegenix  6 месяцев назад +2

      I'm SO glad you liked it ❤️🙏

  • @michaeloshinaike5733
    @michaeloshinaike5733 8 месяцев назад +8

    This is the most comprehensive zustand tutorial on youtube. Great Job

    • @codegenix
      @codegenix  8 месяцев назад

      You're welcome🙏

  • @noNullMoments
    @noNullMoments 8 месяцев назад +2

    Call the library what you want as long you as keep making good , quality content. Keep it up

    • @codegenix
      @codegenix  8 месяцев назад

      I'm so glad you liked it. Thanks

  • @K00000ry
    @K00000ry 8 месяцев назад +2

    Agha damet garm! Content Aaliye🙌

    • @codegenix
      @codegenix  8 месяцев назад +1

      Fadaye shoma🙏

  • @digitalsahara6670
    @digitalsahara6670 8 месяцев назад +2

    man.... love thuis channel so much ! thanks for a great video again , perfectly timed too

    • @codegenix
      @codegenix  8 месяцев назад

      Much appreciated! I'm so happy now...

  • @shafiq_ramli
    @shafiq_ramli Месяц назад +1

    What should I learn first before I dive into this tutorial? I don't understand the typescript syntax at 7:47

  • @ShasHamood
    @ShasHamood 8 месяцев назад +1

    Thank you very Thank you I've been waiting for him impatiently

    • @codegenix
      @codegenix  8 месяцев назад +1

      You’re welcome 😊

  • @yourlinuxguy
    @yourlinuxguy 6 месяцев назад +1

    Thankyou so much for the tutorial once again. Kudos to you man!

    • @codegenix
      @codegenix  6 месяцев назад +1

      My pleasure!

  • @AvikNayak_
    @AvikNayak_ 4 дня назад +1

    Hey codegenix, Can you make an in-depth video on Prisma like you did with drizzle?

    • @codegenix
      @codegenix  3 дня назад

      I'm currently working on it

  • @dedanmsafari8213
    @dedanmsafari8213 7 месяцев назад

    I loved this one..quite in depth.I love the coding standards enforced here. will combine it with react query to build cool stuff.Looking foward to more tutorials from you.Great job mate!

    • @codegenix
      @codegenix  7 месяцев назад

      I'm so glad that you liked it. Thank you very much. I really appreciate it

    • @yourlinuxguy
      @yourlinuxguy 7 месяцев назад

      @@codegenix Would love to see you do ReactQuery.

  • @amadikesullivan2962
    @amadikesullivan2962 4 месяца назад +1

    Thanks for creating such an amazing piece.
    I wanted to ask you, what is the best practice of performing server actions with zustand . For instance, when we increase the qty , we need to do the same on the server and then, on the client , call incQty when the server is updated. What the best approach with zustand ? I am thinking of creating a function(async) and when the store action is called to be set, the functions runs to update the server first and when is done, it update the product store else return state.

    • @codegenix
      @codegenix  4 месяца назад

      @amadikesullivan2962 You are very welcome bro!
      I don't recommend using Zustand for server state management because it is not made for it (async operations) and you have to handle all the logic for data fetching (caching, mutation, cache invalidation ...) manually. But I recommend you to use Zustand for client state management and React Query for server state management because they work together flawlessly.

  • @asim-gandu-phenchod
    @asim-gandu-phenchod 7 месяцев назад +1

    Awesome tutorial. Thanks a lot

    • @codegenix
      @codegenix  7 месяцев назад

      You are welcome!

  • @roberthmejias
    @roberthmejias 5 месяцев назад

    What a tutorial 😎.... It's just what I needed 🥳!!! Thanks a lot for sharing this knowledge with us. You're a crack! 🤟

    • @codegenix
      @codegenix  5 месяцев назад

      Love you broooo😍❤️

  • @MonuYadav-yx3kd
    @MonuYadav-yx3kd 4 месяца назад +1

    what font and theme are you using > I really like it

    • @codegenix
      @codegenix  4 месяца назад

      The font is "JetBrainsMono Nerd Font" and the theme is Dracula bro👌

  • @huseyinlora
    @huseyinlora 7 месяцев назад

    Great! Please continue to produce such comprehensive and beginner-friend tutorials bro! I'm following your contents regularly. They are great. Well done. Thanks.
    Recommendation: You can add timestamps for every certain part of the video!

    • @codegenix
      @codegenix  7 месяцев назад +1

      Thanks, will do!

  • @rittickdatta1209
    @rittickdatta1209 3 месяца назад +1

    Best Zustand tutorial out there without a doubt! Can you share the theme used for VS Code? The colors and fonts are really cool 🙂

    • @codegenix
      @codegenix  3 месяца назад

      Thanks for your amazing energy bro. I'm gonna publish the vscode tutorial in a few days. Currently I cannot upload video to my RUclips channel. The internet connection in my country is terrible nowadays. Uploading is like a headache and it is almost impossible for now

  • @BartoszDurczak-m8y
    @BartoszDurczak-m8y 3 месяца назад +1

    Good tutorial thanks.

    • @codegenix
      @codegenix  3 месяца назад +1

      Glad it was helpful!

  • @RohitRaj-od3be
    @RohitRaj-od3be 6 месяцев назад +2

    My components folder and lib folder is creating at root directory inside @ and also it is not running could you please reply.

    • @codegenix
      @codegenix  6 месяцев назад +1

      @RohitRaj-od3be You can add this to your tsconfig file:
      "paths": {
      "@/*": ["./src/*"],
      "$/*": ["./*"]
      }
      then you can import your files at root level like:
      import { something } from "$/components/YourComponent.tsx

  • @jayadky5983
    @jayadky5983 8 месяцев назад +1

    Great videos on the channel brother🔥keep up the good work. Subscribed 💪

    • @codegenix
      @codegenix  8 месяцев назад

      I'm really glad you liked. Thank you so much 🙏

  • @mehdifada-yi5074
    @mehdifada-yi5074 2 месяца назад

    khaste nashid awli bod

    • @codegenix
      @codegenix  2 месяца назад +1

      Mokhlesam soltan

  • @dream__moments
    @dream__moments 7 месяцев назад +2

    what if I want to persist the Cart Slice only ?

    • @codegenix
      @codegenix  7 месяцев назад +1

      @dream__moments Slice persisting is not possible but you can create multiple stores and persist each of them that you want. For example you can create a store only for your cart, then only persist that not the other store.

    • @dream__moments
      @dream__moments 7 месяцев назад

      @@codegenix ok thanks for the knowledge

    • @souradeepdey1338
      @souradeepdey1338 6 месяцев назад

      I think you can use partialize option to manually select the states you need to save

  • @mmaarafat
    @mmaarafat 2 месяца назад +1

    Thank you so much. If possible, can you make a video about AWS that we should learn as web developer?

  • @dimd8824
    @dimd8824 5 месяцев назад +1

    Hello.
    how to type a wrapper function to add devtools in dev mode?
    so that devtools do not end up in production.
    const createStore = (fn, name) => {
    if(process.env.node_env === "development") {
    return create()(devtools(fn, name))
    }
    return create(fn, name))
    }

  • @masar-at
    @masar-at 7 месяцев назад

    This was really helpful, thank you for your efforts.
    You can add multiple shadcn components in one line like:
    npx shadcn-ui@latest input label drawer accordion

    • @codegenix
      @codegenix  7 месяцев назад

      I'm so glad you liked it🙏thanks for the trick

  • @alirezamohammadi9691
    @alirezamohammadi9691 2 месяца назад +2

    thanks alot for this great tutoraial compatriot(damet garm dadash😉) and I have a suggestion for you : bro it's better to teach with simplicity and focus on the main topic instead of using diffrent UI libs to distract your audience

    • @codegenix
      @codegenix  Месяц назад

      Thanks for the tip dadash❤️!

  • @prashlovessamosa
    @prashlovessamosa 8 месяцев назад

    Now you are also a freecodecamp elite.

  • @neoTriny
    @neoTriny 3 месяца назад

    To be honest, the tutorial quality is good, but for beginners - you should be straight forward and keep going, instead of hopping from one file to another and also showing why we are doing complex vs why easiest. Thanks for sharing. Hoping to see more videos

    • @codegenix
      @codegenix  3 месяца назад

      Thanks bro. I'm gonna consider it it🙏

  • @smartdriver2990
    @smartdriver2990 8 месяцев назад

    Yes, I need it

    • @codegenix
      @codegenix  8 месяцев назад

      I'm glad. 🙏

  • @congdatt
    @congdatt 6 месяцев назад

    Keep it up bro

  • @ErjonDinarama
    @ErjonDinarama 6 месяцев назад +1

    Perfect

    • @codegenix
      @codegenix  6 месяцев назад

      Glad you liked it

  • @RafathBinZafarAuvee
    @RafathBinZafarAuvee 8 месяцев назад

    This man is saint

  • @올바른운동
    @올바른운동 8 месяцев назад

    thank you!!!!!!!!

    • @codegenix
      @codegenix  8 месяцев назад

      You're welcome!

  • @mohammadbohluli
    @mohammadbohluli 7 месяцев назад

    very very nice videos, keep going Bro🤩 and Your accent is very similar to that of Iranians, are you Iranian?

    • @codegenix
      @codegenix  7 месяцев назад +1

      Are sotoonam😍 Merci

  • @Raghav_Bajpai_
    @Raghav_Bajpai_ 8 месяцев назад

    When Drizzle ORM full course from basic to advance?

    • @codegenix
      @codegenix  8 месяцев назад +1

      It might takes a few weeks my friend...

  • @Noli344
    @Noli344 8 месяцев назад

    Can you make a full stack Next.js application with Tailwind, TypeScript, Zustand and Supabase?

    • @codegenix
      @codegenix  8 месяцев назад

      Currently working on it...

  • @bhargavkumar
    @bhargavkumar 5 месяцев назад

    will this work with nextjs?

    • @codegenix
      @codegenix  5 месяцев назад

      @bhargavkumar I don't recommend it

    • @primodrums7604
      @primodrums7604 4 месяца назад

      @@codegenixwhat do you recommend?

  • @okwarakizitochigozirim6107
    @okwarakizitochigozirim6107 7 месяцев назад +1

    lovely tutorial, love it !!!!!

    • @codegenix
      @codegenix  7 месяцев назад

      Thanks so much 😊

  • @regilearn2138
    @regilearn2138 8 месяцев назад

    Hi mate, your content have unique touch. I would like to request a video on how to upload file to AWS s3 using lambda function with MERN stack using typescript

    • @codegenix
      @codegenix  8 месяцев назад +1

      Thank you for the suggestion! Unfortunately Amazon services are banned in my country and I don't have access to these services (Azure, AWS, Vercel, Firebase, ...)

  • @mammad_mpk1309
    @mammad_mpk1309 2 месяца назад +1

    i think you have presian accent, good job

  • @minter-07
    @minter-07 8 месяцев назад

    Great , now i want to learn drizzle orm with neon db with a small project, 😅 if possible

    • @codegenix
      @codegenix  8 месяцев назад +1

      Currently working on it. Drizzle is really popular in this channel👌

  • @codingwitharsalan
    @codingwitharsalan Месяц назад +1

    Ham vatan🎉

  • @vercieli
    @vercieli 3 месяца назад +1

    Your doing a complex examples try going from basic examples to complex ones

  • @yourlinuxguy
    @yourlinuxguy 6 месяцев назад +1

    Every things is fine but I'm having skill issue to follow. sed 😢

    • @codegenix
      @codegenix  6 месяцев назад

      The first step is always the hardest. Keep practicing, you'll get it!

  • @PierrickCHAUVET
    @PierrickCHAUVET 3 месяца назад +1

    Hi know making a tutorial is hard but : this tutorial is not pedagogic enough. You don't spend enough time explaining each line. so I'm lost, and i've lost my time.

  • @drivebuss8079
    @drivebuss8079 4 месяца назад

    i hated programming after watching your tutorial

    • @codegenix
      @codegenix  4 месяца назад

      @drivebuss8079 Is there any problem with the tutorial?

  • @cykoravi
    @cykoravi 3 месяца назад +1

    Example is good but to be honest i fu***up 😵😵

  • @yoz0__
    @yoz0__ 3 месяца назад

    You're structuring it as redux with single store kinda defeats the point
    For viewers, you better read documentation, if you don't want to do it and want tutorial, just stick to redux

    • @codegenix
      @codegenix  3 месяца назад +1

      @yoz0__ Thanks for your professional feedback. Zustand is mostly an unopinionated library which means that it is up to how you would like to use it and having a single store is kind of my preference which is also recommended by the docs. But I really loved your opinion bro🙏🤗

  • @ZlatkoIliev-s4j
    @ZlatkoIliev-s4j 8 месяцев назад +1

    It's pronounced "Tzushtand" and not zustand. Get it RIGHT! :))))

    • @codegenix
      @codegenix  8 месяцев назад +3

      I had a hard time pronouncing it the way you mentioned, but I just couldn't😆! Thanks for your correction anyway!

    • @zlatkoiliev8927
      @zlatkoiliev8927 7 месяцев назад +1

      @@CURIOSITYcapitalseems like you left your sense of humour at home… 😢

    • @CURIOSITYcapital
      @CURIOSITYcapital 7 месяцев назад

      do you think so?😂

  • @AlexSmith-ms9xb
    @AlexSmith-ms9xb 2 месяца назад

    You talk waaaaaay to fast and jump from file to file!!!!! I don't really feel that a beginner can understand the way Zustand works with this tutorial. "The Only Course You Will Ever Need" is an overstatement.

    • @codegenix
      @codegenix  2 месяца назад

      Thanks for your feedback🙏

  • @duyvinho9164
    @duyvinho9164 4 месяца назад +1

    your example is too complicated, and you got lost in implement the e-commerce site. I dont care the interface of your product, I'm here for zustand knowledge.Pick a simple example, dont waste my time

    • @codegenix
      @codegenix  4 месяца назад

      Thanks for your feedback

  • @hamedfazeli476
    @hamedfazeli476 8 месяцев назад

    Wow you nailed it 🫡✨👍

    • @codegenix
      @codegenix  8 месяцев назад

      Fadaaaa😂❤️

  • @dundotgg
    @dundotgg Месяц назад +1

    DO BETTER-AUTH. YOU WILL BE A LIVE SAVER FOR ALL OF YOUR VIEWERS