React upload progress observer based on render props
npm install react-upload-progressReact component to observe file upload / form post progress using render props, with maximum flexibility!
1. Handle most of the tedious xhr stuff for you
2. You will have full control for the UI part, thanks to render props pattern
3. You can still customize the xhr detail, wuch as headers, withCredentials, and the data to send
```
npm install --save react-upload-progress
`javascript
import UploadProgress, {UploadStatus} from 'react-upload-progress';
formData={formData}
>
{({ status, done, total, error, response }) => (
{status === UploadStatus.SENDING && (
} {status === UploadStatus.DONE && (
{status === UploadStatus.ERROR && (
Examples
Full examples can be found in
examples` directory