A code example showcasing a responsive form that adapts to both mobile and desktop interfaces. The code demonstrates proficiency in handling form state, validation, and data fetching using modern React practices and libraries.
- Adapting seamlessly to both mobile and desktop screen sizes.
- Formik is used to manage the form state and handle user inputs.
- Yup is used to validate the first and last name fields
- Error messages are displayed for validation errors.
- Data for the "Favorite Star Wars Movie" field is retrieved from a GraphQL API.
- Apollo is used for fetching and managing the data.
- There is a clear separation between the logic for the form and the data query from the visual components.
- Best practices for code structuring are adopted. Additional Considerations
