Skip to content

Instantly share code, notes, and snippets.

@tfiechowski
Last active October 29, 2018 00:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tfiechowski/ebf46c3fcb42a5bb630ed66a7f852fbe to your computer and use it in GitHub Desktop.
Save tfiechowski/ebf46c3fcb42a5bb630ed66a7f852fbe to your computer and use it in GitHub Desktop.
import { PhotosConsumer } from './contexts';
import PhotoList from 'components/PhotoList';
export default function ContextPhotoListContainer() {
return (
<PhotosConsumer>
{({ photos, fetchPhotos }) => <PhotoList photos={photos} fetchPhotos={fetchPhotos} />}
</PhotosConsumer>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment