Skip to content

Instantly share code, notes, and snippets.

View pleunv's full-sized avatar
:shipit:

Pleun Vanderbauwhede pleunv

:shipit:
View GitHub Profile
@pleunv
pleunv / UserForm.js
Last active October 24, 2017 16:03 — forked from atuttle/UserForm.js
import { gql, graphql } from 'react-apollo';
import { Formik } from 'formik';
const validate = values => {
return {}; //simplified for now
};
const getInitialValues = user => ({
firstName: user && user.firstName || '',
lastName: user && user.lastName || '',

2015-01-29 Unofficial Relay FAQ

Compilation of questions and answers about Relay from React.js Conf.

Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.

What is Relay?

Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).