Partners Tech & Innovation
How to fetch and cache data effectively with React Query
Event ended.
Forms and validation have always been a pain point in most projects. It shouldn't be the case.
Forms and validation have always been a pain point in most projects. It shouldn't be the case.
During this session we'll see how we can add a native form to our project and we'll discuss some of the alternatives to make our life easier before choosing one, namely `react-hook-form`.
Once our form implementation is ready, we'll have to deal with user inputs (and server outputs). We'll need to ensure that the objects we manipulate have the expected shape (for storage or display purpose) and handle the error cases when it doesn't. For this, we'll use `zod`.
What to expect during this session:
- Quick overview of what we build last session
- Adding a form to a react project
- Adding predefined and/or custom validation rules
- Handling error messages
Speaker:
Thomas Huchedé, Consultant, Zenika
Event Location
How to fetch and cache data effectively with React Query
Event ended.