Created
January 26, 2019 00:00
-
-
Save scottdomes/eb3599c6ea7091e8a33683762e2ee312 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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