我想知道如何打开目录以使用IconButton上传文件?reactJS材质UI图标按钮上传文件
<IconButton
iconClassName="fa fa-plus-square"
onClick={(e) => e.stopPropagation()}
type='file'
/>
使用下面的代码显示了上传文件的图标按钮和其他按钮
<IconButton iconClassName="fa fa-plus-square" onClick={(e) => e.stopPropagation()}>
<input type="file type='file'>
</IconButton>