我正在尝试在我的项目中使用 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>
);
}
}