Skip to content

Instantly share code, notes, and snippets.

@scottdomes
Created January 26, 2019 00:00
Show Gist options
  • Save scottdomes/eb3599c6ea7091e8a33683762e2ee312 to your computer and use it in GitHub Desktop.
Save scottdomes/eb3599c6ea7091e8a33683762e2ee312 to your computer and use it in GitHub Desktop.
const Main = () => {
return (
<div className="Main">
<Link to="/apollo" className="switch">
Switch to Apollo
</Link>
<div className="container">
<QueryComponent>
{data => {
return (
<React.Fragment>
<ContactList edges={data.viewer.allContacts.edges} />
<MutationComponent viewer={data.viewer} />
</React.Fragment>
);
}}
</QueryComponent>
</div>
</div>
);
};
export default Main;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment