我试图在我的项目中使用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>
);
}
}但得到一个错误,如文件中所示:

有人能帮我吗?
发布于 2019-01-10 16:19:27
您尝试将字符串作为子道具进行传递。但它的功能就像是孩子的道具。阅读有关此组件here的更多信息
https://stackoverflow.com/questions/54124086
复制相似问题