Last active
May 2, 2019 07:49
-
-
Save sktwentysix/7b0edfdc46347032af08c36f363e13e6 to your computer and use it in GitHub Desktop.
medium-ocr-react-handlechange2
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
{ /* File uploader */ } | |
<section className="hero"> | |
<label className="fileUploaderContainer"> | |
Click here to upload documents | |
<input type="file" id="fileUploader" onChange={this.handleChange} multiple /> | |
</label> | |
<div> | |
{ this.state.uploads.map((value, index) => { | |
return <img key={index} src={value} width="100px" /> | |
}) } | |
</div> | |
<button className="button">Generate</button> | |
</section> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment