Skip to content

Latest commit

 

History

History
 
 

typescript-react-apollo

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

TypeScript React Apollo Template

This template generates React Apollo components and HOC with TypeScript typings. This template is extended version of TypeScript template, so the configuration is same with graphql-codegen-typescript-template.

  • Example Input
query Test {
  feed {
    id
    commentCount
    repository {
      full_name
      html_url
      owner {
        avatar_url
      }
    }
  }
}
  • Example Usage
  <Test.Component variables={...}>
    ...
  </Test.Component>

or

  const withTestData = Test.HOC(...);