Separating the data layer from the view layer in React components can improve testability and maintainability. Using Apollo and GraphQL code generator, you can create hooks for data fetching and pass the resultant data to a view component, making the components easier to test with tools like React Testing Library or render in
Sort: