超级表达式必须为 null 或函数 Uppy 插件:这是我的我的组件代码块检查:
import Uppy from '@uppy/core';
import { DashboardModal, useUppy } from '@uppy/react';
import Tus from '@uppy/tus';
import React from 'react';
const FileUploaderMulti = () => {
const uppy = useUppy( () => {
return new Uppy()
.use( Tus, { endpoint: 'https://tusd.tusdemo.net/files' } );
} );
return ( <DashboardModal uppy={uppy} />
);
};
export default FileUploaderMulti;