All Posts

  • Published on
    In this article, I will show you how to handle form errors using React, Zod, Formik. You will learn how to create a form that supports both create and edit operations, how to fetch data for dynamic parts of the form with loading and error handling, how to validate the form using Zod, how to mock server errors using MSW, how to use Formik to manage the form state and submission. The form will also have features such as disabling during submission, displaying field errors, validating initial values when editing, and validating submit input when submitting. I will also cover some of the edge cases and best practices for form error handling with unit tests.
  • Published on
    This article explores the use of Zod, a JavaScript library, for validating CSV content. It covers how Zod`s powerful schema validation can be applied to ensure the accuracy of imported data and enhance data integrity in systems.
  • Published on
    Developers can face the dilemma of choosing between Prisma and Kysely as their preferred database toolkit. Prisma offers a powerful ORM and database toolkit, while Kysely provides a lightweight and flexible SQL query builder. By combining the two, developers can leverage Prisma robust data modeling capabilities alongside Kysely versatile querying options, creating a comprehensive solution for efficient and scalable database management.