File Viewer for react

I need a File Viewer for React to view all kinds of basic files ( doc, docx, pdf, ppt, pptx, xls, xlsx, csv and odf ) from server, possibly of application/octet-stream type. Tried npm-file-viewer and doc-viewer, they have issues like either only certain type os files are loading or they are uploading to a 3rd party server to view (security issue and latency). Using Google doc viewer link is also not fully reliable.

I’ve used MUI tree view to allow exploring directories and react-markdown to view the markdown files in my recent project GitNoter - https://github.com/vivekweb2013/gitnoter

While it only shows the markdown files you can refer the code and implement your own file viewer. You can at-least reuse the tree view provided in the sidebar which allows exploring different directories

have you tried stackblitz’s file viewer for react?