If you're still using class components, you can use the [``](https://react-dropzone.js.org/#components) component provided by the lib: ```jsx harmony import React, {Component} from 'react'; import Dropzone from 'react-dropzone'; class Basic extends Component { constructor() { super(); this.onDrop = (files) => { this.setState({files}) }; this.state = { files: [] }; } render() { const files = this.state.files.map(file => (
  • {file.name} - {file.size} bytes
  • )); return ( {({getRootProps, getInputProps}) => (

    Drag 'n' drop some files here, or click to select files

    )}
    ); } } ```