Skip to content

Instantly share code, notes, and snippets.

@sogko sogko/App.js

Last active Oct 14, 2015
What would you like to do?
hello-world-relay-part-1 - RelayJS App
import React from 'react';
import Relay from 'react-relay';
// Your React component
class App extends React.Component {
render() {
return (
// Your Relay container.
// Compose your React components with a declaration of
// the GraphQL query fragments that fetch their data.
export default Relay.createContainer(App, {
fragments: {
latestPost: () => Relay.QL`
fragment on Post {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.