title: Accessing props in onSubmit method of react-dropzone-uploader
body: <p>I am using <a href="https://github.com/fortana-co/react-dropzone-uploader" rel="nofollow noreferrer"><code>react-dropzone-uploader</code></a> to upload files. Everything works OK; except that I want the parent Component to be updated after clicking on submit button. What should I do?</p>
  
  <p>This is the part of code I use:</p>
  
  <pre><code>
  export default () =&gt; {
  
    const handleSubmit = (files, allFiles) =&gt; {
      console.log('uploads files:', files, this)
      // There is no access to props here.
    }
  
    return (
      &lt;Dropzone
        getUploadParams={getUploadParams}
        onChangeStatus={handleChangeStatus}
        onSubmit={handleSubmit}
        accept="image/*,.pdf,.doc,.docx"
      /&gt;
    )
  }
  </code></pre>