Zod Validation in React (Complete Tutorial)

Поділитися
Вставка
  • Опубліковано 26 лис 2024

КОМЕНТАРІ • 36

  • @oProfessorJohnny
    @oProfessorJohnny Місяць тому +1

    I've never said on any channel before, but of course you are the best teacher that dont speak my nativelly language, congratulations you always make everything easily to understand, you have saved me alot of times in my job hahhaha 🎉

  • @adityaprasad3122
    @adityaprasad3122 2 місяці тому +24

    Please make a video about axios interceptors and how to manage access & refresh token from backend in reactjs

  • @3illanon145
    @3illanon145 Місяць тому

    so valuable. so to the point. i just understood zod for the first time

  • @nourmustafa5094
    @nourmustafa5094 2 місяці тому +2

    The way you validated .env file is cool, thanks Darius❤

  • @ice_donut
    @ice_donut 2 місяці тому

    Every tutorial you create is pure gold! Thanks! 🇺🇦

  • @eugenetan7326
    @eugenetan7326 14 днів тому

    I liked your React Hook Form - Complete Tutorial (with Zod). Coming for this now. Thanks Cosden.

  • @xphstos_
    @xphstos_ 2 місяці тому +1

    Great video, as always!
    I would love to see one with Valibot!

  • @DiogoLScarmagnani
    @DiogoLScarmagnani 2 місяці тому

    I never thought zod could be used to validate env variables. Very good approach and very good video.

    • @27sosite73
      @27sosite73 2 місяці тому

      it is a default in T3 stack

  • @dcmbassi
    @dcmbassi 2 місяці тому

    So many useful tidbits in this one. I didn't know about nullish, or the safeParse, or the trick with the environment variables. Thanks, Darius.

  • @garudaputro
    @garudaputro 2 місяці тому

    This is what i looking, thanks for explain this topic with easies way ❤ love it

  • @Deus-lo-Vuilt
    @Deus-lo-Vuilt 2 місяці тому

    Thank you compa, your content is excellent, keep it up.

  • @gauravbawa5609
    @gauravbawa5609 2 місяці тому

    once again blast with great content🎉

  • @kalideb-y3y
    @kalideb-y3y 2 місяці тому

    I like the bonus part 👍👍👍

  • @mDHARYL
    @mDHARYL 14 днів тому

    I really like your video. 🎉

  • @bentennyson1897
    @bentennyson1897 2 місяці тому +4

    Hey, can you make a full fledged live project on youtube using all the practical libraries like tanstack query, zod, zustand, etc. using Next JS as a framework

  • @SimeonIeroteev
    @SimeonIeroteev Місяць тому

    Nice tutorial and excellent explanation! Can you make a video about Vitest for unit testing? Thank you in advance! Best regards!

  • @meow-iskander
    @meow-iskander 2 місяці тому +1

    Make a video about Tanstack table and router, if possible!

  • @AntNZ
    @AntNZ 2 місяці тому

    Would be awesome to get a tutorial on how to integrate types generated by Prisma into zod schemas with minimal refactoring each time a model changes.

  • @tusharr911
    @tusharr911 2 місяці тому

    Perfection

  •  2 місяці тому

    Thank you for the great video. Also, can you share the theme and ide settings you used? If you have shared it before and I missed it, please excuse me.

  • @aliakbarmohajeruni3628
    @aliakbarmohajeruni3628 2 місяці тому

    Thank you

  • @CLeovison
    @CLeovison 2 місяці тому

    Hi Darius,
    Can you create a video on how to handle error in react without try catch? Because i think it was better to actually handle the error on your own rather than relying on try catch to handle the error for you.
    Thank you so muuch

  • @dharylovey
    @dharylovey 2 місяці тому

    You forget to add date and useFieldArray

  • @muhamadbintangrk4693
    @muhamadbintangrk4693 2 місяці тому +2

    trpc pls

  • @daniel-fi7be
    @daniel-fi7be 2 місяці тому

    the project react is not openeing

  • @serhiyi7526
    @serhiyi7526 2 місяці тому +1

    thanks for the video, but I still don't understand the meaning of this library when using typescript (if we were talking about js, then yes). But typescript has its own descriptions of models

    • @reybontje2375
      @reybontje2375 Місяць тому

      It's generally used for validation of data that can't easily be typed with TypeScript, as well as to ensure that your types are actually valid during runtime.
      To expand on that last point, TypeScript transpiles to JavaScript. When you have a TypeScript object that says you should have certain fields/properties, the reality is that you aren't guaranteed to have those fields if they come from third-party APIs or even internal APIs. Validation is just a way to enforce the assumptions made by TypeScript.
      I find that assuming data is valid when it is not is more dangerous and can create harder-to-spot bugs than going through the effort of verifying that your data is correct at runtime.