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.