如何使用 react.js 上传 Excel 表格文件并将数据显示到表格中

问题描述:

我是 React JS 的新手.我正在尝试使用 react.js 上传 Excel 工作表文件并将数据显示到表格中.我有来自链接的部分参考,但并不完整.请帮忙解决.从excel导入数据并在反应组件中显示

I am new to react JS. I am trying to perform uploading Excel sheet file using react.js and display data to a table. I got partial reference from the link but, it is not complete. Please help with it. Importing data from excel and displaying in a react component

您可以使用像 https 的库://react-dropzone.js.org/ 上传文件,然后使用 https://github.com/felixrieseberg/React-Spreadsheet-Component 库来显示它.

You can use the library like https://react-dropzone.js.org/ to upload files and then use https://github.com/felixrieseberg/React-Spreadsheet-Component library to display it.