我试图在我的项目中使用react-dropzone,但是出现了无法渲染reactDropzone组件的错误。我尝试过:
import ReactDropzone from 'react-dropzone';
export class BankingDetail extends React.Component {
render() {
return (
<ReactDropzone
accept="image/*"
onDrop={()=>console.log("this.onPreviewDrop")}
>
Drop an image, get a preview!
</ReactDropzone>
);
}
}