Home / Companies / Apollo / Blog / Post Details
Content Deep Dive

Reducing our Redux code with React Apollo

Blog post from Apollo

Post Details
Company
Date Published
Author
Peggy Rayzis
Word Count
2,366
Language
English
Hacker News Points
-
Summary

Reducing code with React Apollo: A small team at Major League Soccer, Major League Soccer, successfully reduced nearly 5,000 lines of code by offloading data fetching management to Apollo, resulting in a more declarative application. They achieved this by leveraging GraphQL's features such as incremental adoption, polling, and fetchMore, which allowed them to simplify their Redux-based application and reduce maintenance burden. By using Apollo's higher-order components like graphql() and compose(), they were able to reuse familiar concepts from Redux to build more scalable and maintainable applications. The team's experience demonstrates the benefits of adopting a GraphQL-first approach for managing data fetching in React applications.