Skip to content

Instantly share code, notes, and snippets.

@r3dm1ke
Created February 21, 2020 15:51
Show Gist options
  • Select an option

  • Save r3dm1ke/d033456420f4f2fca85d33da05379dff to your computer and use it in GitHub Desktop.

Select an option

Save r3dm1ke/d033456420f4f2fca85d33da05379dff to your computer and use it in GitHub Desktop.
import React from 'react';
import { ApolloProvider } from '@apollo/react-hooks';
import client from './client';
import {Typography, Container, makeStyles} from "@material-ui/core";
import RepositoryList from "./RepositoryList";
import SearchBar from "./SearchBar";
const useStyles = makeStyles({
title: {
marginTop: '1rem',
marginBottom: '1rem',
textAlign: 'center'
}
});
const App = () => {
const classes = useStyles();
return (
<ApolloProvider client={client}>
<Container maxWidth={'sm'}>
<Typography variant={'h3'} className={classes.title}>GraphQL Github Client</Typography>
<SearchBar />
<RepositoryList />
</Container>
</ApolloProvider>
);
};
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment