Created
January 15, 2020 01:23
-
-
Save hiro08gh/95241470e2c6fe99ce565c56c26d9ed4 to your computer and use it in GitHub Desktop.
upload
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
import React, {useState} from 'react'; | |
import PhotoUpload from './PhotoUpload'; | |
import PhotoList from './PhotoList'; | |
const PhotoUploadContainer = () => { | |
const [image, setImage] = useState(''); | |
const handleUpload = () => { | |
...any | |
} | |
const handleList = () => { | |
...any | |
} | |
return ( | |
<div> | |
<PhotoUpload image={image} handleUpload={handleUpload} /> | |
<PhotoList image={image} handleList={handleList} /> | |
</div> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment