Last active
October 29, 2018 00:15
-
-
Save tfiechowski/ebf46c3fcb42a5bb630ed66a7f852fbe 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 { 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