Jerome Stephaniestephaniejerome.hashnode.dev路Jan 20, 2025How to Handle Forms and Validation in React with React Hook Form and ZodForms are essential to most web applications, whether you're collecting user information, managing logins, or processing payments. However, managing forms efficiently in React can be challenging, especially regarding validation. React Hook Form is a ...React
SOVANNAROsovannaro.hashnode.dev路Jan 20, 2025Mastering Zod Schema ArraysZod is a powerful TypeScript-first schema declaration and validation library that simplifies the process of defining and validating data structures. One of the key features of Zod is its ability to handle arrays with ease. In this article, we will de...zod
SOVANNAROsovannaro.hashnode.dev路Jan 20, 2025Understanding Zod Schema ObjectsZod is a powerful TypeScript-first schema validation library that makes it easy to define, validate, and transform data. One of Zod's most powerful features is its ability to work with objects. Zod provides a variety of methods to manipulate and vali...zod
SOVANNAROsovannaro.hashnode.dev路Jan 20, 2025Mastering Zod Schema Methods: A Comprehensive GuideZod is a powerful TypeScript-first schema validation library that makes it easy to define, validate, and transform data. Whether you're working on a small project or a large-scale application, Zod's schema methods provide the flexibility and robustne...zod
Begench Gurbanmammedovcalcucode.hashnode.dev路Dec 20, 2024Runtime Type Checking with Zod in a front-end applicationTypeScript helps developers resolve common problems in web development by ensuring type safety. TypeScript performs type checking during compilation, allowing developers to catch potential issues early. However, when consuming data from external serv...Frontend Development
Jesicajestsee.hashnode.dev路Dec 14, 2024Setting Dynamic Default Values with Zod SchemaIntroduction Zod provides a powerful way to define schemas for validating and transforming data. You can easily define default values for properties. but what if you need a default value based on another property in the schema? Let鈥檚 explore how to...zod
Panth Patelhow-is-my-backend.whiteloves.in路Dec 8, 2024How to Implement Type Safe Functions in JavaScriptEver run into the issue where you can't make type-safe functions in JavaScript? So you switch to TypeScript, only to find out that types are just for development and don't actually validate function inputs or outputs! Then you end up using a validati...dispose
Abhishek Rautsweabhishek.hashnode.dev路Dec 8, 2024Middleware in Express: Keep Your Server Chill with Global Error Handling and Zod 馃槑What鈥檚 Middleware? When you're building APIs or web apps in Express.js, middleware is like that homie who handles all the important tasks before you even get to the fun part (your routes). 馃殌 Whether it鈥檚 parsing JSON, checking if a user is logged in...js
Luca Restagnolucarestagno.hashnode.dev路Dec 3, 2024How to validate your Next.js API with Zod and TypescriptNext.js is a popular React framework known for building end-to-end web applications. It enables developers to manage both the front-end and back-end of a project within a unified codebase, simplifying development and maintenance. When building web AP...Web Development
Panth Patelhow-is-my-backend.whiteloves.in路Dec 1, 202410 Common Issues in Node.js to keep in MindIf you have a callback API function, fix it using the Promise constructor. function badImplementation() { return new Promise((resolve, reject) => { someOldLibWithCb((data, err) => { if (err) { reject(err); ...Node.js