npm install react-fast-upload> React Upload
  
``shell`
npm i react-fast-upload --save
| name | type | default | description |
|------|------|------|------|
| action | String | | from action url |
| name | String | | file name |
| type | String | file | file type |
| data | object | | other data object to post |
| headers | object | | http headers to post, available in modern browsers |
| ~~multiple~~ | ~~Boolean~~ | ~~false~~ | ~~多文件, available in modern browsers~~ |
| clsp | String | rf | 更改原有样式classname前缀 |
| wrapClassName | String | | 自定义样式 |
| onStart | function | | start callback |
| onSuccess | function | | success callback |
| onProgress | function | | progress callback |
| onError | function | | error callback |
``js``
var React = require('react')
var ReactDOM = require('react-dom')
var Some = require('react-fast-upload')
ReactDOM.render(
`shellyarn
npm i -g fis3 --registry=https://registry.npm.taobao.orgInstall dependencies | 安装依赖
npm run dep
# > Suggested Use replace npm run dep | 建议使用 yarn 替代 npm run dep
# npm i -g yarn
# npm run yi
Build based on fast-boot
> For npm owner: npm publish Need to be in ./output