Created
December 14, 2018 13:45
-
-
Save tarang9211/3c9c00d69a1effb4736ec24455a482d5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import React from 'react'; | |
import { Navbar } from 'shared/components'; | |
import { Query } from 'react-apollo'; | |
import gql from 'graphql-tag'; | |
const Home = () => { | |
return ( | |
<> | |
<Navbar isAuthenticated={true} /> | |
<div className="container"> | |
<Query query={QUERY}> | |
{({ data, error, loading }) => { | |
console.log(loading); | |
return <div>Form</div>; | |
}} | |
</Query> | |
</div> | |
</> | |
); | |
}; | |
const QUERY = gql` | |
query QUERY { | |
conferences { | |
id | |
} | |
} | |
`; | |
export default Home; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment