Skip to content

Instantly share code, notes, and snippets.

@hiro08gh
Created January 15, 2020 01:23
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 hiro08gh/95241470e2c6fe99ce565c56c26d9ed4 to your computer and use it in GitHub Desktop.
Save hiro08gh/95241470e2c6fe99ce565c56c26d9ed4 to your computer and use it in GitHub Desktop.
upload
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