Explore the concept of "Components as Data" and its impact on cross-platform GraphQL component APIs in this JSConf US 2019 talk. Delve into the intricacies of decoupled architecture, focusing on the crucial decision of where to decouple. Learn how shifting the "Decouple Line" can unlock powerful features for your API. Examine the limitations of traditional content APIs that map data models directly to resources, and discover how this approach can lead to duplicated efforts and inconsistencies across platforms. Understand the benefits of moving the decoupling process closer to the frontend, incorporating queries, denormalization, business logic, and A/B testing into the backend. Explore the practical implementation of serving JSON structured as UI component trees, effectively creating a JSON-rendering frontend. Discover the advantages of this approach, including simplified frontends, centralized business logic and A/B testing, design consistency through a "Design Schema," and optimized queries. Gain insights into developing a cross-platform UI library that implements the design schema and serves as a rendering engine for multiple platforms. Follow along with code examples, GraphQL schema demonstrations, and practical implementations in React to grasp the full potential of the Components as Data approach.
Read more
Components as Data - A Cross Platform GraphQL Component API