Upgrade to Pro — share decks privately, control downloads, hide ads and more …

React and GraphQL - Frontend Besties

React and GraphQL - Frontend Besties

Intro to React and GraphQL, creating a mock GraphQL server, rendering the data from the GraphQL API with Apollo Client

Orjiewuru Kingdom Isaac

October 21, 2017
Tweet

More Decks by Orjiewuru Kingdom Isaac

Other Decks in Programming

Transcript

  1. Introduction Objectives 01 - React 
 02 - GraphQL 03

    - Mocking a GraphQL server 04 - Apollo GraphQL Client
  2. • Declarative React makes it painless to create interactive UIs.

    Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. - reactjs.org Our example app: reactjs.org A JavaScript library for building user interfaces

  3. • Component Based Build encapsulated components that manage their own

    state, then compose them to make complex UIs. - reactjs.org Our example app: reactjs.org A JavaScript library for building user interfaces

  4. • Learn Once, Write Anywhere Integrate React into an existing

    project without rewriting existing code. • Knowledge reuse Our example app: reactjs.org A JavaScript library for building user interfaces

  5. • Describe your data • Ask for what you want

    • Get predictable results graphql.org A query language for your APIs and a Runtime for fulfilling those queries with your existing data
  6. dev.apollodata.com Apollo Client - The flexible, production ready GraphQL client

    for React and native apps. • Advanced data management • Use json-graphql-server to setup a graphql endpoint • Use react-apollo to connect the component to the graphql server • Display the data in the component from Apollo store