There is a React component for Simple File Upload called react-simple-file-upload
. You can install it with npm or yarn:
npm install react-simple-file-upload
Once installed, you can import and use the package. Once uploaded, the file will be available in the onSuccess
handler.
import { SimpleFileUpload } from 'react-simple-file-upload'
<SimpleFileUpload
apiKey="..."
onSuccess={handleFile}
/>
function handleFile(url){
console.log('The URL of the file is ' + url)
}