Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- customOnChangeHandler = (event) => {
- const { target: { files } } = event;
- const filesToStore = [];
- files.forEach(file => filesToStore.push(file));
- this.setState({ files: filesToStore });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement