Session

Improving Form Validation with Server Actions and Vest

Forms are at the core of web development, but working with them can also be challenging. As they get more complex, they become harder to write, maintain, and validate effectively.

Server Actions is a new feature recently added to React that allows us to pass data over to the server from our forms without needing to create a dedicated API endpoint for it. However, this is just the beginning. It's now up to us to decide how to validate and store our data.

In this talk, we will explore how to properly use React Server Actions and combine them with Vest, a new breed of validation library that changes the way we handle form validation using a declarative and expressive syntax similar to testing libraries. We will discuss why form validation is so difficult and how to simplify it using Vest and Server Actions.

Together, we will take a deep dive into a complex validation scenario and learn how to make it simple using these powerful tools. By the end of this talk, you will have a better understanding of how to work with forms in React and how to use Server Actions and Vest to improve your form validation process.

Evyatar Alush

Staff Engineer at Meta

Tel Aviv, Israel

Actions

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top